This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_mav_send_manual_control

Function Documentation

int rc_mav_send_manual_control(int16_t x, int16_t y, int16_t z, int16_t r, uint16_t buttons, uint8_t target)

Pack and send message of type MAVLINK_MSG_ID_MANUAL_CONTROL.

Parameters
  • x[in] X-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to forward(1000)-backward(-1000) movement on a joystick and the pitch of a vehicle.

  • y[in] Y-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to left(-1000)-right(1000) movement on a joystick and the roll of a vehicle.

  • z[in] Z-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a separate slider movement with maximum being 1000 and minimum being -1000 on a joystick and the thrust of a vehicle.

  • r[in] R-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invalid. Generally corresponds to a twisting of the joystick, with counter-clockwise being 1000 and clockwise being -1000, and the yaw of a vehicle.

  • buttons[in] A bitfield corresponding to the joystick buttons’ current state, 1 for pressed, 0 for released. The lowest bit corresponds to Button 1.

  • target[in] The system to be controlled.

Returns

0 on success, -1 on failure