|
|
|
@ -1906,7 +1906,8 @@ Sensors::rc_poll()
@@ -1906,7 +1906,8 @@ Sensors::rc_poll()
|
|
|
|
|
|
|
|
|
|
manual.mode_slot = ((_rc.channels[_parameters.rc_map_flightmode - 1] - slot_min) * max_index) / (slot_max - slot_min); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* mode switches */ |
|
|
|
|
manual.mode_switch = get_rc_sw3pos_position(rc_channels_s::RC_CHANNELS_FUNCTION_MODE, _parameters.rc_auto_th, |
|
|
|
|
_parameters.rc_auto_inv, _parameters.rc_assist_th, _parameters.rc_assist_inv); |
|
|
|
@ -1925,7 +1926,6 @@ Sensors::rc_poll()
@@ -1925,7 +1926,6 @@ Sensors::rc_poll()
|
|
|
|
|
_parameters.rc_offboard_th, _parameters.rc_offboard_inv); |
|
|
|
|
manual.kill_switch = get_rc_sw2pos_position(rc_channels_s::RC_CHANNELS_FUNCTION_KILLSWITCH, |
|
|
|
|
_parameters.rc_killswitch_th, _parameters.rc_killswitch_inv); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* publish manual_control_setpoint topic */ |
|
|
|
|
if (_manual_control_pub != nullptr) { |
|
|
|
|