added code for PCB on and off, added pointers to e_button and pwm pins
Dependencies: QEI2 chair_BNO055 PID VL53L1X_Filter
Dependents: wheelchairControlSumer2019
Diff: wheelchair.cpp
- Revision:
- 14:9caca9fde9b0
- Parent:
- 12:921488918749
- Child:
- 17:7f3b69300bb6
--- a/wheelchair.cpp Thu Aug 09 16:38:54 2018 +0000 +++ b/wheelchair.cpp Mon Aug 13 18:22:54 2018 +0000 @@ -34,7 +34,7 @@ out = pc; out->printf("wheelchair setup done \n"); ti = time; - wheel = new QEI(Encoder1, Encoder1, NC, EncoderReadRate); + wheel = new QEI(Encoder1, Encoder2, NC, EncoderReadRate); myPID.SetMode(AUTOMATIC); }