diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-31 16:51:33 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-12-31 16:51:33 +0100 |
commit | 2ab6eefc2966b615f66f3c8b366337fa293bc7a5 (patch) | |
tree | 4a40fd723f76c423c0b666d92a005923e2b6fd24 /src/platforms/ros | |
parent | e826187efe6f514a632ab2ef2e0183d17792c0a9 (diff) | |
download | px4-firmware-2ab6eefc2966b615f66f3c8b366337fa293bc7a5.tar.gz px4-firmware-2ab6eefc2966b615f66f3c8b366337fa293bc7a5.tar.bz2 px4-firmware-2ab6eefc2966b615f66f3c8b366337fa293bc7a5.zip |
reduce manualinput queue size
Diffstat (limited to 'src/platforms/ros')
-rw-r--r-- | src/platforms/ros/nodes/manual_input/manual_input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/ros/nodes/manual_input/manual_input.cpp b/src/platforms/ros/nodes/manual_input/manual_input.cpp index bd2017033..eddacf55f 100644 --- a/src/platforms/ros/nodes/manual_input/manual_input.cpp +++ b/src/platforms/ros/nodes/manual_input/manual_input.cpp @@ -45,8 +45,8 @@ ManualInput::ManualInput() : _n(), - _joy_sub(_n.subscribe("joy", 10, &ManualInput::JoyCallback, this)), - _man_ctrl_sp_pub(_n.advertise<px4::manual_control_setpoint>("manual_control_setpoint", 10)) + _joy_sub(_n.subscribe("joy", 1, &ManualInput::JoyCallback, this)), + _man_ctrl_sp_pub(_n.advertise<px4::manual_control_setpoint>("manual_control_setpoint", 1)) { /* Load parameters, default values work for Microsoft XBox Controller */ _n.param("map_x", _param_axes_map[0], 4); |