mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 05:53:35 +08:00
RPMCapture: define period as UINT32_MAX when timed out
This commit is contained in:
@@ -125,7 +125,7 @@ void RPMCapture::Run()
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Timeout for no interrupts
|
// Timeout for no interrupts
|
||||||
_period = 0;
|
_period = UINT32_MAX;
|
||||||
ScheduleDelayed(RPM_PULSE_TIMEOUT);
|
ScheduleDelayed(RPM_PULSE_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ private:
|
|||||||
|
|
||||||
hrt_abstime _hrt_timestamp{0};
|
hrt_abstime _hrt_timestamp{0};
|
||||||
hrt_abstime _hrt_timestamp_prev{0};
|
hrt_abstime _hrt_timestamp_prev{0};
|
||||||
uint32_t _period{0};
|
uint32_t _period{UINT32_MAX};
|
||||||
uint32_t _error_count{0};
|
uint32_t _error_count{0};
|
||||||
px4::atomic<bool> _value_processed{true};
|
px4::atomic<bool> _value_processed{true};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user