1
0
Fork 0
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:
Larry (TBS) 2016-01-05 17:06:12 +08:00 committed by borisbstyle
parent 560bd745f0
commit cad401da25
5 changed files with 22 additions and 2 deletions

View file

@ -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();
}