Implement sensor fusion algorithm based on LSM9DS1 IMU.
Fork of LSM9DS1_project by
AS5145.h@2:c889fecf9afe, 2018-04-24 (annotated)
- Committer:
- middleyuan
- Date:
- Tue Apr 24 15:13:58 2018 +0000
- Revision:
- 2:c889fecf9afe
- Parent:
- 1:b1562831bbaf
SensorFusion
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
middleyuan | 2:c889fecf9afe | 1 | #ifndef AS5145_H |
middleyuan | 1:b1562831bbaf | 2 | #define AS5145_H |
middleyuan | 1:b1562831bbaf | 3 | |
middleyuan | 1:b1562831bbaf | 4 | #include "mbed.h" |
middleyuan | 1:b1562831bbaf | 5 | |
middleyuan | 1:b1562831bbaf | 6 | extern SPI spi; |
middleyuan | 1:b1562831bbaf | 7 | extern DigitalOut CS; |
middleyuan | 1:b1562831bbaf | 8 | extern SPI spi2; |
middleyuan | 1:b1562831bbaf | 9 | extern DigitalOut CS2; |
middleyuan | 1:b1562831bbaf | 10 | |
middleyuan | 1:b1562831bbaf | 11 | extern int position[2]; |
middleyuan | 1:b1562831bbaf | 12 | extern int position_old[2]; |
middleyuan | 1:b1562831bbaf | 13 | extern short low_byte; |
middleyuan | 1:b1562831bbaf | 14 | extern short high_byte; |
middleyuan | 1:b1562831bbaf | 15 | |
middleyuan | 1:b1562831bbaf | 16 | extern void ReadValue(void); |
middleyuan | 1:b1562831bbaf | 17 | extern bool AS5145_begin(void); |
middleyuan | 1:b1562831bbaf | 18 | |
middleyuan | 1:b1562831bbaf | 19 | |
middleyuan | 1:b1562831bbaf | 20 | #endif |