Christian Benitez
/
wheelchaircontrol
Wheelchair control
Fork of wheelchaircontrol by
Diff: wheelchair.cpp
- Revision:
- 0:fc0c4a184482
- Child:
- 1:c0beadca1617
--- /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