Initial Commit

Dependencies:   mbed HC05 QEI MODSERIAL SWSPI mbed-rtos

Committer:
harshb
Date:
Tue Oct 21 21:59:15 2014 +0000
Revision:
6:5ab1735265a9
Parent:
4:81b0de07841f
Initial Commit

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 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