![]() Sets the absolute position target of the motor plugged into motor port A to 1000 degrees at a speed of 50 The resetMotorEncoder(nMotorIndex) command should be used before a moveMotorTarget(nMotorIndex) to ensure the motor is turning in the correct direction.Ĭode Example: //Sets the absolute position target of the motor plugged. ![]() nPosition takes values in degrees (unless the encoder units are set to a different mode using the setMotorEncoderUnits command.The set distance to travel specified by nPosition. ![]() The port the motor (in servo mode) is plugged into to nMotorIndex. This command needs three pieces of information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |