code of robot bike
Dependencies: SDFileSystem mbed
Fork of Robot_Bicycle by
Diff: SPI_9dSensor.h
- Revision:
- 4:b0967990e390
- Parent:
- 1:709be64ca63c
- Child:
- 10:3b952ea7fad4
--- a/SPI_9dSensor.h Wed Jun 22 04:35:18 2016 +0000 +++ b/SPI_9dSensor.h Wed Jul 06 06:54:15 2016 +0000 @@ -41,7 +41,7 @@ #define Acce_gainz -0.002394f///=8*9.81/2^15 #define Magn_gain 0.000244f ///8gauss/2^15 = 0.000244gauss -extern SPI spi2; +extern SPI sensor_LSM9D; extern DigitalOut sensor_CSG; extern DigitalOut sensor_CSXM; @@ -66,7 +66,7 @@ extern float u_cali[9], u_old[9]; extern void sig_handler(int signo); -extern void setup_spi(void); +extern void setup_spi_sensor(void); void close(int fd); extern void init_Sensors(void); @@ -82,4 +82,7 @@ extern void get_9axis_scale(void); +extern void print_WhoAmI_G(void); +extern void print_WhoAmI_XM(void); + #endif // SPI_9DSENSOR_H_INCLUDED