SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
Diff: Hardwares/WheelEncoder.cpp
- Revision:
- 21:60377d6f1cc2
- Parent:
- 15:eb6a274b3dfb
- Child:
- 54:f1f5648dfacf
--- a/Hardwares/WheelEncoder.cpp Tue Feb 14 19:55:04 2017 +0000 +++ b/Hardwares/WheelEncoder.cpp Tue Feb 14 22:58:07 2017 +0000 @@ -11,7 +11,9 @@ WheelEncoder::WheelEncoder(SW::Core& core) : m_core(core), m_intRL(InterruptIn(PIN_WE_RL)), - m_intRR(InterruptIn(PIN_WE_RR)) + m_intRR(InterruptIn(PIN_WE_RR)), + m_rrDuration(1.0f), + m_rlDuration(1.0f) { m_rrightTimer.start(); m_rleftTimer.start();