finished commenting on the .cpp file and changed the statistics library name
Dependencies: QEI2 PID IMU6050Ver11 Watchdog VL53L1X_Filter ros_lib_kinetic
Dependents: Version1-3 Version1-5
wheelchair.cpp
- Committer:
- ryanlin97
- Date:
- 2018-07-12
- Revision:
- 1:c0beadca1617
- Parent:
- 0:fc0c4a184482
- Child:
- 3:a5e71bfdb492
File content as of revision 1:c0beadca1617:
#include "wheelchair.h" Wheelchair::Wheelchair(PinName xPin, PinName yPin) { x = new AnalogOut(xPin); y = new AnalogOut(yPin); } void Wheelchair::move(float degrees) { } void Wheelchair::forward() { x->write(high); y->write(def); } void Wheelchair::backward() { x->write(low); y->write(def); } void Wheelchair::right() { x->write(def); y->write(high); } void Wheelchair::left() { x->write(def); y->write(low); } void Wheelchair::stop() { x->write(def); y->write(def); }