code of robot bike

Dependencies:   SDFileSystem mbed

Fork of Robot_Bicycle by Chris LU

Revision:
1:709be64ca63c
Parent:
0:830ddddc129f
Child:
4:b0967990e390
--- a/SPI_9dSensor.h	Thu Jun 09 09:46:38 2016 +0000
+++ b/SPI_9dSensor.h	Tue Jun 21 18:11:46 2016 +0000
@@ -41,6 +41,10 @@
 #define Acce_gainz  -0.002394f///=8*9.81/2^15
 #define Magn_gain   0.000244f ///8gauss/2^15 = 0.000244gauss
 
+extern SPI spi2;
+extern DigitalOut sensor_CSG;
+extern DigitalOut sensor_CSXM;
+
 extern Serial pc;
 
 extern int volatile interrupt;