ardupilot/libraries/AP_ESC_Telem
Bob Long 0b7a56e2fd AP_ESC_Telem: fix RPM timeout race
The RPM telemetry data structure can get updated by another thread at
any time. This can cause (now - last_update_us) to be negative, which
looks like the data is nearly UINT32_MAX microseconds stale. To fix
this, we copy the last_update_us value before we get the current time
so it's guaranteed to be positive.

We also minimize the number of places we explicitly check the timestamp
and rely on the `data_valid` where possible to minimize the performance
impact of this change.
2025-02-04 10:46:34 +11:00
..
AP_ESC_Telem_Backend.cpp AP_ESC_Telem: add telemdata.valid method to simplify code 2024-08-20 09:14:11 +10:00
AP_ESC_Telem_Backend.h AP_ESC_Telem: add telemdata.valid method to simplify code 2024-08-20 09:14:11 +10:00
AP_ESC_Telem_config.h AP_ESC_Telem: addition of ESC extended status message 2024-08-06 10:57:36 +10:00
AP_ESC_Telem_SITL.cpp AP_ESC_Telem: SITL: fill in extended status values 2024-08-20 09:14:11 +10:00
AP_ESC_Telem_SITL.h AP_ESC_Telem: generalise ESC telemetry to allow harmonic notch handling with other ESCs 2021-05-12 17:01:11 +10:00
AP_ESC_Telem.cpp AP_ESC_Telem: fix RPM timeout race 2025-02-04 10:46:34 +11:00
AP_ESC_Telem.h AP_ESC_Telem: fix RPM timeout race 2025-02-04 10:46:34 +11:00
LogStructure.h AP_ESC_Telem: save some flash when features disabled 2025-01-14 11:46:13 +11:00