Initial Commit

Dependencies:   mbed HC05 QEI MODSERIAL SWSPI mbed-rtos

Committer:
Throwbot
Date:
Sun Oct 12 13:33:19 2014 +0000
Revision:
2:0f80c8a1c236
Child:
4:81b0de07841f
Testing Ultrasonic

Who changed what in which revision?

UserRevisionLine numberNew 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 2:0f80c8a1c236 5
Throwbot 2:0f80c8a1c236 6 extern "C" void mbed_reset();
Throwbot 2:0f80c8a1c236 7 void bt_shell_run();
Throwbot 2:0f80c8a1c236 8 void print_all();
Throwbot 2:0f80c8a1c236 9 struct interface{
Throwbot 2:0f80c8a1c236 10 bool list[16]; //list saves which pieces of data must be returned
Throwbot 2:0f80c8a1c236 11 //0 - IMU_all
Throwbot 2:0f80c8a1c236 12 //1 - IMU_acc
Throwbot 2:0f80c8a1c236 13 //2 - IMU_gyr
Throwbot 2:0f80c8a1c236 14 //3 - IMU_rotation
Throwbot 2:0f80c8a1c236 15 //4 - IR_sensors
Throwbot 2:0f80c8a1c236 16 //5 - Optical_flow_sensors
Throwbot 2:0f80c8a1c236 17 //6 - Current_sensor
Throwbot 2:0f80c8a1c236 18 //7 - Voltage_sensor
Throwbot 2:0f80c8a1c236 19 int period; //this is the refresh rate at which the python wants data [ms]
Throwbot 2:0f80c8a1c236 20 };
Throwbot 2:0f80c8a1c236 21
Throwbot 2:0f80c8a1c236 22 #endif