SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Revision:
64:43ab429a37e0
Parent:
63:d9a81b3d69f5
--- a/Hardwares/IMUManager.h	Sun Apr 09 22:08:34 2017 +0000
+++ b/Hardwares/IMUManager.h	Mon Apr 10 16:44:31 2017 +0000
@@ -1,3 +1,5 @@
+#if 0
+
 #pragma once
 #ifndef IMU_MANAGER_H
 #define IMU_MANAGER_H
@@ -53,6 +55,8 @@
     #error Must define a scale for accelerometer!
 #endif
 
+#define FXOS8700CQ_HP_FILTER_CUTOFF   0x0F
+
 #define FXOS8700CQ_CTRL_REG1    0x2A
 #define FXOS8700CQ_CTRL_REG1_v 0x05
 
@@ -66,11 +70,13 @@
 #define FXOS8700CQ_OFF_Z        0x31
 #define OFFSET_SCALE_F  2.0f
 
+#define FXOS8700CQ_TEMP         0x51
+
 #define FXOS8700CQ_M_CTRL_REG1  0x5B
 
 #define FXOS8700CQ_M_CTRL_REG2  0x5C
 
-#define FXOS8700CQ_READ_LEN 13 // status plus 6 channels = 13 bytes
+#define FXOS8700CQ_READ_LEN 7 // status plus 6 channels = 13 bytes
 
 #define IMU_UPDATE_TICK_RATE 0.002f
 #define IMU_DEFAULT_G 9.8f
@@ -102,10 +108,14 @@
 
 const volatile struct imu_vec3* imu_manager_get_position();
 
+float imu_manager_get_temp();
+
 //const volatile struct imu_vec3* imu_manager_get_magt();
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif //IMU_MANAGER_H
\ No newline at end of file
+#endif //IMU_MANAGER_H
+
+#endif //if 0
\ No newline at end of file