AP_WheelEncoder: fix WheelEncoder_Quadrature timestamp.

Convert timestamp to ms from us.
This commit is contained in:
Michał 2022-06-01 23:34:55 +02:00 committed by Andrew Tridgell
parent 38bbb2361e
commit 6f7abab036
1 changed files with 1 additions and 1 deletions

View File

@ -138,5 +138,5 @@ void AP_WheelEncoder_Quadrature::irq_handler(uint8_t pin,
update_phase_and_error_count(); update_phase_and_error_count();
// record update time // record update time
irq_state.last_reading_ms = timestamp; irq_state.last_reading_ms = timestamp * 1e-3f;
} }