Pilot 1 working code (excluding new patient after calculation). %d changed in %f sensordata serial log.
Dependencies: ADS1015 MPU6050 PixelArray mbed
Fork of Momo_New by
Diff: Sensorplate/main.cpp
- Revision:
- 18:3b2686cdbcb7
- Parent:
- 17:6ec7d594c1f1
- Child:
- 19:3b5999fa7b7e
--- a/Sensorplate/main.cpp Thu Sep 28 20:19:21 2017 +0000 +++ b/Sensorplate/main.cpp Thu Sep 28 20:22:37 2017 +0000 @@ -351,22 +351,21 @@ //receiving order: 8 resistive sensors, 5 electric readings, 3 accelerometer axes, 3 gyroscope axes serial_read(); - if (mute_flag == 1) { - pi.printf(">01\n"); + pi.printf(“>01\n”); + pc.printf(“>01\n”); mute_flag = 0; - LED_intern4 = 1; - } else { - LED_intern4 = 0; - } + } - if (new_patient_flag == 1) { - pi.printf(">02\n"); + if (new_patient_flag == 1) { + pi.printf(“>03\n”); + pc.printf(“>03\n”); new_patient_flag = 0; } - if (reposition_flag == 1) { - pi.printf(">03\n"); + if (reposition_flag == 1) { + pi.printf(“>02\n”); + pc.printf(“>02\n”); reposition_flag = 0; }