mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-01 03:04:04 -04:00
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. |
||
---|---|---|
.. | ||
AP_ESC_Telem_Backend.cpp | ||
AP_ESC_Telem_Backend.h | ||
AP_ESC_Telem_config.h | ||
AP_ESC_Telem_SITL.cpp | ||
AP_ESC_Telem_SITL.h | ||
AP_ESC_Telem.cpp | ||
AP_ESC_Telem.h | ||
LogStructure.h |