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
Motor.h
- Committer:
- Bobymicjohn
- Date:
- 2017-02-02
- Revision:
- 4:25e028102625
- Child:
- 8:92f6baeea027
File content as of revision 4:25e028102625:
#pragma once #include "mbed.h" class Motor{ public: Motor(); ~Motor(); static void setLeftSpeed(int speed); static void setRightSpeed(int speed); static void setSpeeds(int speedLeft, int speedRight); private: static inline void init() { static bool initialized = false; if(!initialized) { initialized = true; initializeMotor(); } } static void initializeMotor(); };