ros: manual input (joystick) node: correctly initilize switches

This commit is contained in:
Thomas Gubler 2015-02-15 18:29:57 +01:00
parent 5beafd25e6
commit ae64e4e05c
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ ManualInput::ManualInput() :
_msg_mc_sp.posctl_switch = px4::manual_control_setpoint::SWITCH_POS_OFF;
_msg_mc_sp.loiter_switch = px4::manual_control_setpoint::SWITCH_POS_OFF;
_msg_mc_sp.return_switch = px4::manual_control_setpoint::SWITCH_POS_OFF;
_msg_mc_sp.offboard_switch = px4::manual_control_setpoint::SWITCH_POS_OFF;
_msg_mc_sp.acro_switch = px4::manual_control_setpoint::SWITCH_POS_NONE;
}