mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-1658 - Various fixes for MPU6000 and HMC5x83
This commit is contained in:
parent
0cf5d163d1
commit
d0ca48e1c4
@ -601,7 +601,7 @@ static bool PIOS_MPU6000_HandleData()
|
||||
queue_data->temperature = 3500 + ((float)(temp + 512)) * (1.0f / 3.4f);
|
||||
|
||||
BaseType_t higherPriorityTaskWoken;
|
||||
xQueueSendToBackFromISR(dev->queue, (void *)&queue_data, &higherPriorityTaskWoken);
|
||||
xQueueSendToBackFromISR(dev->queue, (void *)queue_data, &higherPriorityTaskWoken);
|
||||
return higherPriorityTaskWoken == pdTRUE;
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ extern uint8_t PIOS_HMC5x83_ReadID(pios_hmc5x83_dev_t handler, uint8_t out[4]);
|
||||
extern int32_t PIOS_HMC5x83_Test(pios_hmc5x83_dev_t handler);
|
||||
extern bool PIOS_HMC5x83_IRQHandler(pios_hmc5x83_dev_t handler);
|
||||
|
||||
extern const PIOS_SENSORS_Driver PIOS_MPU6000_Driver;
|
||||
extern const PIOS_SENSORS_Driver PIOS_HMC5x83_Driver;
|
||||
|
||||
#endif /* PIOS_HMC5x83_H */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user