mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
RpmControl: call local message instance after message name following the convention
This commit is contained in:
parent
cd0e04f8b0
commit
4050cedfaf
@ -73,12 +73,12 @@ public:
|
||||
float getActuatorCorrection()
|
||||
{
|
||||
if (_rpm_sub.updated()) {
|
||||
rpm_s rpm_input{};
|
||||
rpm_s rpm{};
|
||||
|
||||
if (_rpm_sub.copy(&rpm_input)) {
|
||||
_rpm_estimate = rpm_input.rpm_estimate;
|
||||
_rpm_raw = rpm_input.rpm_raw;
|
||||
_timestamp_last_rpm_measurement = rpm_input.timestamp;
|
||||
if (_rpm_sub.copy(&rpm)) {
|
||||
_rpm_estimate = rpm.rpm_estimate;
|
||||
_rpm_raw = rpm.rpm_raw;
|
||||
_timestamp_last_rpm_measurement = rpm.timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user