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/Motor.cpp
- Revision:
- 13:7dcb1642ef99
- Parent:
- 11:676ea42afd56
- Child:
- 44:15de535c4005
--- a/Hardwares/Motor.cpp Wed Feb 08 18:00:33 2017 +0000 +++ b/Hardwares/Motor.cpp Wed Feb 08 23:47:02 2017 +0000 @@ -7,10 +7,10 @@ Motor::Motor(SW::Core& core) : m_core(core), - m_dirL(DigitalOut(MC_DIR_L, 1)), - m_dirR(DigitalOut(MC_DIR_R, 1)), - m_pwmL(PwmOut(MC_SPEED_L)), - m_pwmR(PwmOut(MC_SPEED_R)) + m_dirL(DigitalOut(PIN_MC_DIR_L, 1)), + m_dirR(DigitalOut(PIN_MC_DIR_R, 1)), + m_pwmL(PwmOut(PIN_MC_SPEED_L)), + m_pwmR(PwmOut(PIN_MC_SPEED_R)) {