mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Fix self test for MPU6000 so it returns negative values per our standard
This commit is contained in:
parent
d2a3e39bbf
commit
f5845cb037
@ -354,7 +354,7 @@ float PIOS_MPU6000_GetAccelScale()
|
||||
* \return 0 if test succeeded
|
||||
* \return non-zero value if test succeeded
|
||||
*/
|
||||
uint8_t PIOS_MPU6000_Test(void)
|
||||
int32_t PIOS_MPU6000_Test(void)
|
||||
{
|
||||
/* Verify that ID matches (MPU6000 ID is 0x69) */
|
||||
int32_t mpu6000_id = PIOS_MPU6000_ReadID();
|
||||
|
@ -154,7 +154,7 @@ extern int32_t PIOS_MPU6000_Init(uint32_t spi_id, uint32_t slave_num, const stru
|
||||
extern xQueueHandle PIOS_MPU6000_GetQueue();
|
||||
extern int32_t PIOS_MPU6000_ReadGyros(struct pios_mpu6000_data * buffer);
|
||||
extern int32_t PIOS_MPU6000_ReadID();
|
||||
extern uint8_t PIOS_MPU6000_Test();
|
||||
extern int32_t PIOS_MPU6000_Test();
|
||||
extern float PIOS_MPU6000_GetScale();
|
||||
extern float PIOS_MPU6000_GetAccelScale();
|
||||
extern void PIOS_MPU6000_IRQHandler(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user