From 5ff8ae9628ea73ba303d0f2c00351ea4534ddafe Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Tue, 4 Apr 2017 12:23:33 +1200 Subject: [PATCH] Increased GPS task frequency to 100Hz to prevent serial buffer overflows. --- src/main/fc/fc_tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/fc/fc_tasks.c b/src/main/fc/fc_tasks.c index 4ceb6a555..72c57be18 100644 --- a/src/main/fc/fc_tasks.c +++ b/src/main/fc/fc_tasks.c @@ -391,7 +391,7 @@ cfTask_t cfTasks[TASK_COUNT] = { [TASK_GPS] = { .taskName = "GPS", .taskFunc = gpsUpdate, - .desiredPeriod = TASK_PERIOD_HZ(10), // GPS usually don't go raster than 10Hz + .desiredPeriod = TASK_PERIOD_HZ(100), // Required to prevent buffer overruns if running at 115200 baud (115 bytes / period < 256 bytes buffer) .staticPriority = TASK_PRIORITY_MEDIUM, }, #endif