Commit Graph

8 Commits

Author SHA1 Message Date
Randy Mackay 6b89c24cc6 AP_WheelEncoder: calculate rate from last iteration 2018-08-27 16:44:33 +09:00
Peter Barker d366842d15 AP_WheelEncoder: move to using HAL's attach_interrupt methods
AP_WheelEncoder: add error reporting for attaching of interrupts

AP_WheelEncoder: use detach_interrupt method

AP_WheelEncoder: correct initialisation of wheelencoder instances

AP_WheelEncoder: make update_phase_and_error_count non-static

AP_WheelEncoder: use (uint8_t)-1 in place of 255
2018-08-21 20:34:01 +09:00
Peter Barker 21201b8816 AP_WheelEncoder: do not permit copies 2018-08-21 20:34:01 +09:00
Randy Mackay 1531801c83 AP_WheelEncoder: minor comment fix 2018-01-04 14:08:17 +09:00
Randy Mackay 2c7b9d9cf7 AP_WheelEncoder: add get_delta_angle
The total angular change measured by the wheel encoder in radians
2017-07-27 14:19:08 +09:00
Randy Mackay a53e254bd0 AP_WheelEncoder: replace scaling with CPR and radius
CPR is the wheel encoder's counts per revolution of the wheel
radius is the radius of the wheel in meters
2017-07-27 14:19:08 +09:00
Randy Mackay cd71984705 AP_WheelEncoder: 3d position offset 2017-07-27 14:19:08 +09:00
Randy Mackay d356e60269 AP_WheelEncoder: library to read from wheel encoders 2017-07-14 07:27:26 +09:00