From c3a9138b97580084a9932ab6c962376c1c7271aa Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 30 Aug 2024 15:37:18 -0400 Subject: [PATCH] Update main.c sensor 1,2,3 testing --- main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 5fc6b5e3..a7d377b5 100644 --- a/main.c +++ b/main.c @@ -700,6 +700,9 @@ int main(int argc, char * argv[]) { token = strtok(NULL, space); } } + sensor[XS1] = 100; + sensor[XS2] = 200; + sensor[XS3] = 300; printf("\n"); // if (sensor[GPS1] != 0) { if ((sensor[GPS1] > -90.0) && (sensor[GPS1] < 90.0) && (sensor[GPS1] != 0.0)) { @@ -1529,10 +1532,6 @@ void get_tlm_fox() { encodeB(b, 46 + head_offset, PSUCurrent); encodeA(b, 48 + head_offset, (int)(sensor[DTEMP] * 10 + 0.5) + 2048); // encodeB(b, 49 + head_offset, (int)(sensor[XS1] * 10 + 0.5) + 2048); - - sensor[XS2] = 100.0; - sensor[XS2] = 1000; - sensor[XS3] = 500; encodeB(b, 49 + head_offset, (int)(sensor[XS1])); encodeA(b, 0 + head_offset, (int)(sensor[XS2]));