Update main.c add extra payload reads

beta-pl-cc-test
Alan Johnston 1 year ago committed by GitHub
parent 8bd98edd3c
commit afef03182d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -439,6 +439,8 @@ int main(int argc, char * argv[]) {
eclipse_time -= period / 2; // if starting in eclipse, shorten interval eclipse_time -= period / 2; // if starting in eclipse, shorten interval
} }
get_payload_serial(FALSE);
tx_freq_hz -= tx_channel * 50000; tx_freq_hz -= tx_channel * 50000;
if (transmit == FALSE) { if (transmit == FALSE) {
@ -468,6 +470,9 @@ int main(int argc, char * argv[]) {
printf("\n FSK Mode, %d bits per frame, %d bits per second, %d ms per frame, %d ms sample period\n", printf("\n FSK Mode, %d bits per frame, %d bits per second, %d ms per frame, %d ms sample period\n",
bufLen / (samples * frameCnt), bitRate, frameTime, samplePeriod); bufLen / (samples * frameCnt), bitRate, frameTime, samplePeriod);
get_payload_serial(FALSE);
} else if (mode == BPSK) { } else if (mode == BPSK) {
bitRate = 1200; bitRate = 1200;
rsFrames = 3; rsFrames = 3;
@ -500,6 +505,7 @@ int main(int argc, char * argv[]) {
// printf(" %d", sin_map[j]); // printf(" %d", sin_map[j]);
} }
printf("\n"); printf("\n");
get_payload_serial(FALSE);
} }
memset(voltage, 0, sizeof(voltage)); memset(voltage, 0, sizeof(voltage));
@ -511,6 +517,8 @@ int main(int argc, char * argv[]) {
get_tlm_fox(); // fill transmit buffer with reset count 0 packets that will be ignored get_tlm_fox(); // fill transmit buffer with reset count 0 packets that will be ignored
firstTime = 1; firstTime = 1;
get_payload_serial(FALSE);
// if (!sim_mode) // always read sensors, even in sim mode // if (!sim_mode) // always read sensors, even in sim mode
{ {
strcpy(pythonStr, pythonCmd); strcpy(pythonStr, pythonCmd);
@ -545,6 +553,8 @@ int main(int argc, char * argv[]) {
long int loopTime; long int loopTime;
loopTime = millis(); loopTime = millis();
get_payload_serial(FALSE);
while (loop-- != 0) { while (loop-- != 0) {
fflush(stdout); fflush(stdout);
fflush(stderr); fflush(stderr);

Loading…
Cancel
Save

Powered by TurnKey Linux.