trying 6 times at start and sleep(3.8) fixed

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

@ -1406,7 +1406,7 @@ void get_tlm_fox() {
// while ((millis() - sampleTime) < (unsigned int)samplePeriod)
int startSleep = millis();
if ((millis() - sampleTime) < ((unsigned int)frameTime - 500)) // was 100
sleep(4.0); // 0.5); // 25); // initial period
sleep(3.8); // 0.5); // 25); // initial period
while ((millis() - sampleTime) < ((unsigned int)frameTime - 500)) // was 100
sleep(0.1); // 0.5); // 25);
// sleep((unsigned int)sleepTime);
@ -2198,7 +2198,7 @@ void get_tlm_fox() {
// if ((mode == BPSK) && (firstTime == 1)) // only do first time
if (firstTime == 1) // only do first time
{
for (int times = 0; times < 6; times++)
for (int times = 0; times < 7; times++) // FSK 4 worked, trying 6 for BPSK
{
start = millis(); // send frame three times
sock_ret = send(sock, buffer, (unsigned int)(ctr * 2 + 2), 0);

Loading…
Cancel
Save

Powered by TurnKey Linux.