From bdb15a1dbb6dbc7de4d9c9cd81c60d3332535942 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 21 Jul 2019 04:48:46 -0400 Subject: [PATCH] Fixed BAT typo --- afsk/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index a86f7618..08317d84 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -497,12 +497,12 @@ int get_tlm(int tlm[][5]) { // tlm[2][C] = (int)((time(NULL) - timestamp) / 15) % 100; // tlm[2][D] = (int)(50.5 + strtof(ina219[SENSOR_45 + CURRENTV], NULL)/10.0) % 100; // NiMH Battery current - tlm[2][D] = (int) (99.5 - current[BATT]/10) % 100; + tlm[2][D] = (int) (99.5 - current[BAT]/10) % 100; // tlm[3][A] = abs((int)((strtof(ina219[SENSOR_45 + VOLTAGE], NULL) * 10) - 65.5) % 100); // tlm[3][B] = (int)(strtof(ina219[SENSOR_4A + VOLTAGE], NULL) * 10.0) % 100; // 5V supply to Pi - tlm[3][A] = abs((int)(voltBus[BATT] * 10) - 65.5) % 100) + tlm[3][A] = abs((int)(voltBus[BAT] * 10) - 65.5) % 100) tlm[3][B] = (int)(voltBus[BUS] * 10.0) % 100; if (tempSensor != -1) {