Updated with emergency button and watchdog code
Dependencies: QEI2 chair_BNO055 PID VL53L1X_Filter
Dependents: wheelchairControlSumer2019
Diff: wheelchair.cpp
- Revision:
- 0:fc0c4a184482
- Child:
- 1:c0beadca1617
diff -r 000000000000 -r fc0c4a184482 wheelchair.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wheelchair.cpp Thu Jul 12 18:36:09 2018 +0000 @@ -0,0 +1,34 @@ +#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); +}*/ \ No newline at end of file