Updated with emergency button and watchdog code
Dependencies: QEI2 chair_BNO055 PID VL53L1X_Filter
Dependents: wheelchairControlSumer2019
Diff: wheelchair.cpp
- Revision:
- 29:052247c0f0e0
- Parent:
- 28:6b2610acca97
- Child:
- 30:a6659c5a8109
--- a/wheelchair.cpp Thu Jun 27 21:45:58 2019 +0000 +++ b/wheelchair.cpp Thu Jun 27 22:54:46 2019 +0000 @@ -12,7 +12,7 @@ double dist_old, curr_pos; // Variables for odometry position -//DigitalOut signal(D5); // Output to send "STOP" signal to wheelchair +//DigitalOut signal(D5); // Output to send "STOP" signal to wheelchair DigitalIn button(PD_0, PullUp); // Emergency Stop button PID myPID(&pid_yaw, &Output, &Setpoint, 5.5, .00, 0.0036, P_ON_E, DIRECT); // Angle PID object constructor