-
Notifications
You must be signed in to change notification settings - Fork 30
Arduino_servoOff
Chris Courson edited this page Sep 3, 2020
·
1 revision
Supported by xArm
Turns off motor of the specified servo(s). There are five forms.
- Turn off servo by servo_id
- Turn off one or more servos by servo_id
- Turn off servo by xArmServo struct
- Turn off servos by an array of xArmServo struct
- Turn off all servos
void servoOff(int servo_id);
Turns off motor of one servo specified by servo ID.
Parameters:
-
servo_id
: The ID number (1 - 6) of the servo.
Returns:
- Nothing.
void servoOff(int num, int servo_id, ...);
Turns off motor of one or more servos specified by servo_ids.
Parameters:
-
num
: Number of servo IDs in list. -
servo_ids[]
: An a list of one or more servo_ids.
Returns:
- Nothing.
void servoOff(xArmServo servo);
Turns off motor of one servo specified by xArmServo object.
Parameters:
-
servo
: An xArmServo object specifying the servo.
Returns:
- Nothing.
void servoOff(xArmServo servos[], int count);
Turns off motor of one or more servos specified by an array of xArmServo object.
Parameters:
-
servos[]
: An array of one or more xArmServo objects defining servo ID and position of each servo. -
count
: The number of servos in the servos array.
Returns:
- Nothing.
void servoOff();
Turns off all servo motors (1 - 6).
Parameters:
- None.
Returns:
- Nothing.
xArm
/LeArm
void actionRun(int group, unsigned times);