![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Wheelchair control
Fork of wheelchaircontrol by
wheelchair.cpp
- Committer:
- ryanlin97
- Date:
- 2018-07-12
- Revision:
- 0:fc0c4a184482
- Child:
- 1:c0beadca1617
File content as of revision 0:fc0c4a184482:
#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); }*/