Browse Source

AP_WheelEncoder: fix WheelEncoder_Quadrature timestamp.

Convert timestamp to ms from us.
apm_2208
Michał 3 years ago committed by Andrew Tridgell
parent
commit
6f7abab036
  1. 2
      libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp

2
libraries/AP_WheelEncoder/WheelEncoder_Quadrature.cpp

@ -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;
} }

Loading…
Cancel
Save