Implement sensor fusion algorithm based on LSM9DS1 IMU.

Dependencies:   mbed

Fork of LSM9DS1_project by 曾 宗圓

Committer:
middleyuan
Date:
Wed Dec 20 15:45:02 2017 +0000
Revision:
1:b1562831bbaf
Child:
2:c889fecf9afe
1;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
middleyuan 1:b1562831bbaf 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