mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:33:33 +08:00
RPM capture: publish every 1s without new data
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Matthias Grob
parent
42acadc882
commit
8ef8cc0480
@@ -122,6 +122,7 @@ void RPMCapture::Run()
|
|||||||
} else {
|
} else {
|
||||||
// Timeout for no interrupts
|
// Timeout for no interrupts
|
||||||
_period = 0;
|
_period = 0;
|
||||||
|
ScheduleDelayed(RPM_PULSE_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
float rpm_raw{0.f};
|
float rpm_raw{0.f};
|
||||||
|
|||||||
Reference in New Issue
Block a user