Update cubesatsim.ino

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

@ -135,15 +135,17 @@ 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();
while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100
sleep(0.1); // 25); // 0.5); // 25);
sampleTime = (unsigned int) millis();
// delay(2000); // delay(2000);
// test_radio(); // test_radio();

Loading…
Cancel
Save

Powered by TurnKey Linux.