mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Increased GPS task frequency to 100Hz to prevent serial buffer overflows.
This commit is contained in:
parent
a03bd7077e
commit
5ff8ae9628
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ cfTask_t cfTasks[TASK_COUNT] = {
|
||||||
[TASK_GPS] = {
|
[TASK_GPS] = {
|
||||||
.taskName = "GPS",
|
.taskName = "GPS",
|
||||||
.taskFunc = gpsUpdate,
|
.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,
|
.staticPriority = TASK_PRIORITY_MEDIUM,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue