Update cubesatsim.ino

pull/153/head
alanbjohnston 4 years ago committed by GitHub
parent f7d5c55649
commit d700eaeea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -136,10 +136,14 @@ void loop() {
// read_payload(); // read_payload();
// encode as digits (APRS or CW mode) or binary (DUV FSK) // encode as digits (APRS or CW mode) or binary (DUV FSK)
if ((mode == BPSK) || (mode == FSK)) if ((mode == BPSK) || (mode == FSK)) {
get_tlm_fox(); get_tlm_fox();
while ((millis() - sampleTime) < ((unsigned int)samplePeriod - 250)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
sampleTime = (unsigned int) millis();
}
else if (mode == AFSK) else if (mode == AFSK)
send_packet(); send_packet();
// delay(2000); // delay(2000);
// test_radio(); // test_radio();
@ -537,7 +541,7 @@ void get_tlm_fox() {
sampleTime = (unsigned int) millis(); sampleTime = (unsigned int) millis();
} else { } else {
Serial.println("first time - short sleep"); Serial.println("first time - short sleep");
sleep(3.0); // sleep(3.0);
// firstTime = OFF; // firstTime = OFF;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.