Code for our FYDP -only one IMU works right now -RTOS is working
bt_shell/shell/bt_shell.h@0:964eb6a2ef00, 2015-03-18 (annotated)
- Committer:
- majik
- Date:
- Wed Mar 18 22:23:48 2015 +0000
- Revision:
- 0:964eb6a2ef00
This is our FYDP code, but only one IMU works with the RTOS.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
majik | 0:964eb6a2ef00 | 1 | #ifndef BT_shell_H |
majik | 0:964eb6a2ef00 | 2 | #define BT_shell_H |
majik | 0:964eb6a2ef00 | 3 | |
majik | 0:964eb6a2ef00 | 4 | #include "robot.h" |
majik | 0:964eb6a2ef00 | 5 | |
majik | 0:964eb6a2ef00 | 6 | void bt_shell_init(); |
majik | 0:964eb6a2ef00 | 7 | void bt_shell_run(); |
majik | 0:964eb6a2ef00 | 8 | |
majik | 0:964eb6a2ef00 | 9 | |
majik | 0:964eb6a2ef00 | 10 | struct interface{ |
majik | 0:964eb6a2ef00 | 11 | bool list[16]; //list saves which pieces of data must be returned |
majik | 0:964eb6a2ef00 | 12 | //0 - IMU_all |
majik | 0:964eb6a2ef00 | 13 | //1 - IMU_acc |
majik | 0:964eb6a2ef00 | 14 | //2 - IMU_gyr |
majik | 0:964eb6a2ef00 | 15 | //3 - IMU_rotation |
majik | 0:964eb6a2ef00 | 16 | //4 - IR_sensors |
majik | 0:964eb6a2ef00 | 17 | //5 - Optical_flow_sensors |
majik | 0:964eb6a2ef00 | 18 | //6 - Current_sensor |
majik | 0:964eb6a2ef00 | 19 | //7 - Voltage_sensor |
majik | 0:964eb6a2ef00 | 20 | int period; //this is the refresh rate at which the python wants data [ms] |
majik | 0:964eb6a2ef00 | 21 | }; |
majik | 0:964eb6a2ef00 | 22 | |
majik | 0:964eb6a2ef00 | 23 | #endif |