Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
bt_shell/shell/bt_shell.h@0:21019d94ad33, 2015-03-21 (annotated)
- Committer:
- majik
- Date:
- Sat Mar 21 21:31:29 2015 +0000
- Revision:
- 0:21019d94ad33
Both IMUs work now
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| majik | 0:21019d94ad33 | 1 | #ifndef BT_shell_H |
| majik | 0:21019d94ad33 | 2 | #define BT_shell_H |
| majik | 0:21019d94ad33 | 3 | |
| majik | 0:21019d94ad33 | 4 | #include "robot.h" |
| majik | 0:21019d94ad33 | 5 | |
| majik | 0:21019d94ad33 | 6 | void bt_shell_init(); |
| majik | 0:21019d94ad33 | 7 | void bt_shell_run(); |
| majik | 0:21019d94ad33 | 8 | |
| majik | 0:21019d94ad33 | 9 | |
| majik | 0:21019d94ad33 | 10 | struct interface{ |
| majik | 0:21019d94ad33 | 11 | bool list[16]; //list saves which pieces of data must be returned |
| majik | 0:21019d94ad33 | 12 | //0 - IMU_all |
| majik | 0:21019d94ad33 | 13 | //1 - IMU_acc |
| majik | 0:21019d94ad33 | 14 | //2 - IMU_gyr |
| majik | 0:21019d94ad33 | 15 | //3 - IMU_rotation |
| majik | 0:21019d94ad33 | 16 | //4 - IR_sensors |
| majik | 0:21019d94ad33 | 17 | //5 - Optical_flow_sensors |
| majik | 0:21019d94ad33 | 18 | //6 - Current_sensor |
| majik | 0:21019d94ad33 | 19 | //7 - Voltage_sensor |
| majik | 0:21019d94ad33 | 20 | int period; //this is the refresh rate at which the python wants data [ms] |
| majik | 0:21019d94ad33 | 21 | }; |
| majik | 0:21019d94ad33 | 22 | |
| majik | 0:21019d94ad33 | 23 | #endif |