From 6f7bbbc2de56e91373e0e7863ac2cd42158333af Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 12 Dec 2020 12:53:07 -0500 Subject: [PATCH] debug sensor_min --- afsk/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index 17ef1886..582975d4 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -1508,14 +1508,18 @@ if (payload == ON) } printf("\n"); + + for (count1 = 0; count1 < 17; count1++) { + printf("Sensor min %f Sensor max %f \n", sensor_min[count1], sensor_max[count1]); + if (sensor[count1] < sensor_min[count1]) sensor_min[count1] = sensor[count1]; if (sensor[count1] > sensor_max[count1]) sensor_max[count1] = sensor[count1]; - printf("Smin %f Smax %f \n", sensor_min[count1], sensor_max[count1]); + printf("Smin %f Smax %f \n", sensor_min[count1], sensor_max[count1]); } xAngularVelocity = (int)(gyroX + 0.5) + 2048;