changed Tx LED for FSK and BPSK to be off for 0.5 sec each frame

pull/93/head
alanbjohnston 5 years ago committed by GitHub
parent 0a51bdde93
commit 9280982067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1108,29 +1108,34 @@ void get_tlm_fox() {
id = 7; id = 7;
else else
id = 0; // 99 in h[6] id = 0; // 99 in h[6]
// for (int frames = 0; frames < FRAME_CNT; frames++) // for (int frames = 0; frames < FRAME_CNT; frames++)
for (int frames = 0; frames < frameCnt; frames++) { for (int frames = 0; frames < frameCnt; frames++) {
if (firstTime != ON) { sleep(1.8);
// delay for sample period digitalWrite(txLed, txLedOff);
#ifdef DEBUG_LOGGING
printf("Tx LED Off\n");
#endif
sleep(0.5);
digitalWrite(txLed, txLedOn); digitalWrite(txLed, txLedOn);
#ifdef DEBUG_LOGGING #ifdef DEBUG_LOGGING
// printf("Tx LED On\n"); printf("Tx LED On\n");
#endif #endif
if (firstTime != ON) {
// delay for sample period
/* /*
while ((millis() - sampleTime) < (unsigned int)samplePeriod) while ((millis() - sampleTime) < (unsigned int)samplePeriod)
sleep((unsigned int)sleepTime); sleep((unsigned int)sleepTime);
*/ */
// if (mode == FSK) // if (mode == FSK)
sleep(2.3); // No sleep at all! // sleep(2.3); // No sleep at all!
// else // else
// sleep(1.3); // sleep(1.3);
digitalWrite(txLed, txLedOff);
#ifdef DEBUG_LOGGING
// printf("Tx LED Off\n");
#endif
// printf("Sample period: %d\n", millis() - (unsigned int)sampleTime); // printf("Sample period: %d\n", millis() - (unsigned int)sampleTime);
sampleTime = (unsigned int) millis(); sampleTime = (unsigned int) millis();

Loading…
Cancel
Save

Powered by TurnKey Linux.