mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 04:13:34 +08:00
rc_update: rename update method
This reflects better what it actually does.
This commit is contained in:
committed by
Matthias Grob
parent
723db8bf2a
commit
6e8ccf6a45
@@ -527,7 +527,7 @@ void RCUpdate::Run()
|
||||
|
||||
// limit processing if there's no update
|
||||
if (rc_updated || (hrt_elapsed_time(&_last_manual_control_input_publish) > 300_ms)) {
|
||||
UpdateManualSetpoint(input_rc.timestamp_last_signal);
|
||||
UpdateManualControlInput(input_rc.timestamp_last_signal);
|
||||
}
|
||||
|
||||
UpdateManualSwitches(input_rc.timestamp_last_signal);
|
||||
@@ -659,7 +659,7 @@ void RCUpdate::UpdateManualSwitches(const hrt_abstime ×tamp_sample)
|
||||
_manual_switches_previous = switches;
|
||||
}
|
||||
|
||||
void RCUpdate::UpdateManualSetpoint(const hrt_abstime ×tamp_sample)
|
||||
void RCUpdate::UpdateManualControlInput(const hrt_abstime ×tamp_sample)
|
||||
{
|
||||
manual_control_input_s manual_control_input{};
|
||||
manual_control_input.timestamp_sample = timestamp_sample;
|
||||
|
||||
@@ -104,7 +104,7 @@ private:
|
||||
*/
|
||||
void update_rc_functions();
|
||||
|
||||
void UpdateManualSetpoint(const hrt_abstime ×tamp_sample);
|
||||
void UpdateManualControlInput(const hrt_abstime ×tamp_sample);
|
||||
void UpdateManualSwitches(const hrt_abstime ×tamp_sample);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user