Browse Source

Level fix.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3155 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
mich146@hotmail.com 14 years ago
parent
commit
4a974180b8
  1. 10
      ArduCopterMega/GCS_Mavlink.pde

10
ArduCopterMega/GCS_Mavlink.pde

@ -1148,6 +1148,14 @@ static void mavlink_delay(unsigned long t) @@ -1148,6 +1148,14 @@ static void mavlink_delay(unsigned long t)
{
unsigned long tstart;
static unsigned long last_1hz, last_3hz, last_10hz, last_50hz;
static bool recursing;
if (recursing) {
delay(t);
return;
}
recursing = true;
tstart = millis();
do {
@ -1178,4 +1186,6 @@ static void mavlink_delay(unsigned long t) @@ -1178,4 +1186,6 @@ static void mavlink_delay(unsigned long t)
}
delay(1);
} while (millis() - tstart < t);
recursing = false;
}

Loading…
Cancel
Save