Initial Commit
Dependencies: mbed HC05 QEI MODSERIAL SWSPI mbed-rtos
shell/bt_shell.h@4:81b0de07841f, 2014-10-14 (annotated)
- Committer:
- Throwbot
- Date:
- Tue Oct 14 17:55:37 2014 +0000
- Revision:
- 4:81b0de07841f
- Parent:
- 2:0f80c8a1c236
Switching between amigobot and Finch bot can be done without resetting the robot
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Throwbot | 2:0f80c8a1c236 | 1 | #ifndef BT_shell_H |
Throwbot | 2:0f80c8a1c236 | 2 | #define BT_shell_H |
Throwbot | 2:0f80c8a1c236 | 3 | #include "robot.h" |
Throwbot | 2:0f80c8a1c236 | 4 | #include "ultrasonic.h" |
Throwbot | 4:81b0de07841f | 5 | #include "tone.h" |
Throwbot | 2:0f80c8a1c236 | 6 | |
Throwbot | 2:0f80c8a1c236 | 7 | extern "C" void mbed_reset(); |
Throwbot | 2:0f80c8a1c236 | 8 | void bt_shell_run(); |
Throwbot | 2:0f80c8a1c236 | 9 | void print_all(); |
Throwbot | 2:0f80c8a1c236 | 10 | struct interface{ |
Throwbot | 2:0f80c8a1c236 | 11 | bool list[16]; //list saves which pieces of data must be returned |
Throwbot | 2:0f80c8a1c236 | 12 | //0 - IMU_all |
Throwbot | 2:0f80c8a1c236 | 13 | //1 - IMU_acc |
Throwbot | 2:0f80c8a1c236 | 14 | //2 - IMU_gyr |
Throwbot | 2:0f80c8a1c236 | 15 | //3 - IMU_rotation |
Throwbot | 2:0f80c8a1c236 | 16 | //4 - IR_sensors |
Throwbot | 2:0f80c8a1c236 | 17 | //5 - Optical_flow_sensors |
Throwbot | 2:0f80c8a1c236 | 18 | //6 - Current_sensor |
Throwbot | 2:0f80c8a1c236 | 19 | //7 - Voltage_sensor |
Throwbot | 2:0f80c8a1c236 | 20 | int period; //this is the refresh rate at which the python wants data [ms] |
Throwbot | 2:0f80c8a1c236 | 21 | }; |
Throwbot | 2:0f80c8a1c236 | 22 | |
Throwbot | 2:0f80c8a1c236 | 23 | #endif |