Skip to content

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

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.

Turn off one or more servos by servo_id

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.

Turn off servo by xArmServo struct

void servoOff(xArmServo servo);

Turns off motor of one servo specified by xArmServo object.

Parameters:

  • servo: An xArmServo object specifying the servo.

Returns:

  • Nothing.

Turn off servos by an array of xArmServo struct

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.

Turn off all servos

void servoOff();

Turns off all servo motors (1 - 6).

Parameters:

  • None.

Returns:

  • Nothing.

actionRun

xArm/LeArm

void actionRun(int group, unsigned times);