From 0e5186603466343aca38cc59a2286faa4198271c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 27 Feb 2024 09:16:16 -0500 Subject: [PATCH] Update main.h changed to SENSOR_FIELDS --- main.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.h b/main.h index 6d72daf3..b0e39cd7 100644 --- a/main.h +++ b/main.h @@ -51,6 +51,7 @@ #define XS1 19 #define XS2 20 #define XS3 21 +#define SENSOR_FIELDS 25 #define RSSI 0 #define IHU_TEMP 2 @@ -150,7 +151,7 @@ float axis[3], angle[3], volts_max[3], amps_max[3], batt, speed, period, tempS, int i2c_bus0 = OFF, i2c_bus1 = OFF, i2c_bus3 = OFF, camera = OFF, sim_mode = FALSE, SafeMode = FALSE, rxAntennaDeployed = 0, txAntennaDeployed = 0; double eclipse_time; -float voltage[9], current[9], sensor[22], other[3]; +float voltage[9], current[9], sensor[SENSOR_FIELDS], other[3]; char sensor_payload[500]; int test_i2c_bus(int bus); @@ -161,7 +162,7 @@ char pythonStr[100], pythonConfigStr[100], busStr[10]; int map[8] = {0, 1, 2, 3, 4, 5, 6, 7}; char src_addr[5] = ""; char dest_addr[5] = "APCSS"; -float voltage_min[9], current_min[9], voltage_max[9], current_max[9], sensor_max[22], sensor_min[22], other_max[3], other_min[3]; +float voltage_min[9], current_min[9], voltage_max[9], current_max[9], sensor_max[SENSOR_FIELDS], sensor_min[SENSOR_FIELDS], other_max[3], other_min[3]; int get_payload_serial(int debug_camera); int finished = FALSE;