diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-02-15 18:29:57 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-02-28 18:25:35 +0100 |
commit | ae64e4e05c2a8f6d179f817c9d591881aafcfee6 (patch) | |
tree | 2968eb3c38747ab265d822ae6af9b6e72e121ec2 /src/platforms/ros | |
parent | 5beafd25e6947b5f6ac33fe66521fb462a1be1b0 (diff) | |
download | px4-firmware-ae64e4e05c2a8f6d179f817c9d591881aafcfee6.tar.gz px4-firmware-ae64e4e05c2a8f6d179f817c9d591881aafcfee6.tar.bz2 px4-firmware-ae64e4e05c2a8f6d179f817c9d591881aafcfee6.zip |
ros: manual input (joystick) node: correctly initilize switches
Diffstat (limited to 'src/platforms/ros')
-rw-r--r-- | src/platforms/ros/nodes/manual_input/manual_input.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platforms/ros/nodes/manual_input/manual_input.cpp b/src/platforms/ros/nodes/manual_input/manual_input.cpp index d5d14a21f..8488c518f 100644 --- a/src/platforms/ros/nodes/manual_input/manual_input.cpp +++ b/src/platforms/ros/nodes/manual_input/manual_input.cpp @@ -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; } |