mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
- Fix and add BST task into scheduler.
This commit is contained in:
parent
560bd745f0
commit
cad401da25
5 changed files with 22 additions and 2 deletions
|
@ -1532,7 +1532,7 @@ static uint32_t next02hzUpdateAt_1 = 0;
|
|||
static uint32_t next10hzUpdateAt_1 = 0;
|
||||
static uint32_t next10hzUpdateAt_2 = 0;
|
||||
|
||||
void bstProcess(void)
|
||||
void taskBstProcess(void)
|
||||
{
|
||||
if(coreProReady) {
|
||||
uint32_t now = micros();
|
||||
|
@ -1548,6 +1548,7 @@ void bstProcess(void)
|
|||
writeRollPitchYawToBST();
|
||||
next10hzUpdateAt_2 = now + UPDATE_AT_10HZ;
|
||||
}
|
||||
|
||||
if(sensors(SENSOR_GPS) && !bstWriteBusy())
|
||||
writeGpsPositionPrameToBST();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue