From 99f46ec92997935633dbe04e4f708cb6e25b52f3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 22 Jan 2024 16:52:36 -0500 Subject: [PATCH 1/5] Update main.c don't read payload in BPSK mode for testing --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 65502f4b..e15e0711 100644 --- a/main.c +++ b/main.c @@ -642,7 +642,8 @@ int main(int argc, char * argv[]) { } - if (payload == ON) { // moved to here +// if (payload == ON) { // moved to here + if ((payload == ON) && (mode != BPSK)) { // moved to here STEMBoardFailure = 0; printf("get_payload_status: %d \n", get_payload_serial(FALSE)); // not debug fflush(stdout); From 770d43d9536b6d6ae091370841f560999fdbda9c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 22 Jan 2024 16:53:19 -0500 Subject: [PATCH 2/5] Update main.h reduce low battery threshold to 3.5 V --- main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.h b/main.h index 19079191..06120e67 100644 --- a/main.h +++ b/main.h @@ -134,7 +134,8 @@ unsigned int sampleTime = 0; int frames_sent = 0; int cw_id = ON; int vB4 = FALSE, vB5 = FALSE, vB3 = FALSE, ax5043 = FALSE, transmit = FALSE, onLed, onLedOn, onLedOff, txLed, txLedOn, txLedOff, payload = OFF; -float voltageThreshold = 3.6, batteryVoltage = 4.5, batteryCurrent = 0, currentThreshold = 100; +// float voltageThreshold = 3.6, batteryVoltage = 4.5, batteryCurrent = 0, currentThreshold = 100; +float voltageThreshold = 3.5, batteryVoltage = 4.5, batteryCurrent = 0, currentThreshold = 100; float latitude = 39.027702f, longitude = -77.078064f; float lat_file, long_file; double cpuTemp; From 9bf105ee94b4b299c2db1ad87314839ec8096c3d Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 22 Jan 2024 17:03:08 -0500 Subject: [PATCH 3/5] Update main.c change starting sleep to 1 sec from 2 sec --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index e15e0711..4f43f6b4 100644 --- a/main.c +++ b/main.c @@ -1394,7 +1394,8 @@ void get_tlm_fox() { // while ((millis() - sampleTime) < (unsigned int)samplePeriod) int startSleep = millis(); if ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100 500 for FSK - sleep(2.0); // 0.5); // 25); // initial period +// sleep(2.0); // 0.5); // 25); // initial period + sleep(1.0); // 0.5); // 25); // initial period while ((millis() - sampleTime) < ((unsigned int)frameTime - 250)) // was 250 100 sleep(0.1); // 25); // 0.5); // 25); // sleep((unsigned int)sleepTime); From aa9050d22d389ced9dc7765be1119da913546b21 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 22 Jan 2024 17:21:28 -0500 Subject: [PATCH 4/5] Update main.c turn payload back on for BPSK --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 4f43f6b4..94fb00a1 100644 --- a/main.c +++ b/main.c @@ -642,8 +642,8 @@ int main(int argc, char * argv[]) { } -// if (payload == ON) { // moved to here - if ((payload == ON) && (mode != BPSK)) { // moved to here + if (payload == ON) { // moved to here +// if ((payload == ON) && (mode != BPSK)) { // moved to here STEMBoardFailure = 0; printf("get_payload_status: %d \n", get_payload_serial(FALSE)); // not debug fflush(stdout); From f6a7764df0518979690da5176d2d645eeec413cd Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 22 Jan 2024 17:24:39 -0500 Subject: [PATCH 5/5] Update main.h payload timeout set to 2 seconds --- main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.h b/main.h index 06120e67..076c0523 100644 --- a/main.h +++ b/main.h @@ -176,7 +176,7 @@ int start_flag_detected = FALSE; int start_flag_complete = FALSE; int end_flag_detected = FALSE; int jpeg_start = 0; -#define CAMERA_TIMEOUT 10000 // 20000 // Camera timeout in milli seconds +#define CAMERA_TIMEOUT 2000 // 10000 // 20000 // Payload timeout in milli seconds void battery_saver(int setting); int battery_saver_check();