mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 22:40:36 +08:00
Use backwards compatible manual_control_setpoint instead of manual_control_input
This commit is contained in:
@@ -661,9 +661,9 @@ void RCUpdate::UpdateManualSwitches(const hrt_abstime ×tamp_sample)
|
||||
|
||||
void RCUpdate::UpdateManualControlInput(const hrt_abstime ×tamp_sample)
|
||||
{
|
||||
manual_control_input_s manual_control_input{};
|
||||
manual_control_setpoint_s manual_control_input{};
|
||||
manual_control_input.timestamp_sample = timestamp_sample;
|
||||
manual_control_input.data_source = manual_control_input_s::SOURCE_RC;
|
||||
manual_control_input.data_source = manual_control_setpoint_s::SOURCE_RC;
|
||||
|
||||
// limit controls
|
||||
manual_control_input.y = get_rc_value(rc_channels_s::FUNCTION_ROLL, -1.f, 1.f);
|
||||
|
||||
Reference in New Issue
Block a user