Commit Graph
11 Commits
Author SHA1 Message Date
Raphael CoefficandGitHub bf23791fdf fix: Various issues related to IMU sensor (#3171)
* fix(imu): reset error counter on successful IMU query

Please note that the HAL already handles busy I2C bus, so that we should not run into the case where the bus is used and another query is started. However, if that happens, HAL_BUSY will be returned, which leads to -1 being returned in our functions, thus increasing the error count until the sensor stops working.

* fix(imu): move imu init into mixer task

Fixes a race condition between init and use.
2023-02-15 16:05:39 +10:00
Raphael CoefficandGitHub 052a344611 Improve gyro/acc range and config (#2113) 2022-09-07 21:21:20 +10:00
Raphael CoefficandRaphael Coeffic 0b8d93ca88 WiP: support for LSM6DSxx 2022-06-25 16:09:04 +02:00
rotormanandRisto fc2142ec78 Changed uniformly to EdgeTX boiler plate (also added boiler for files that were missing it). 2021-10-02 14:22:01 +02:00
Bertrand Songis bff7d5e0bd If Gyro errors > 100 we stop spending time with I2C 2019-05-10 15:33:03 +02:00
Kilrah 4a2a196607 VC++ compilation continued 2019-05-04 12:06:56 +02:00
Bertrand Songis 73fa1c59b1 Gyro scaled output result not needed in RAM 2019-04-05 15:28:44 +02:00
Kilrah f5d4db97fd Windows compilation fix (M_PI) 2019-04-05 12:19:32 +04:00
3djc d775a91545 Add gyro settings computations 2019-04-04 10:43:43 +02:00
Bertrand Songis e9231a2c77 [X-LiteS] Gyro fixes (ouille ouille !) 2019-04-02 20:55:29 +02:00
Bertrand Songis a13ee14bbb [X-LiteS] Gyro added 2019-04-02 20:12:50 +02:00