robot code for summer school

Dependencies:   PM2_Libary Eigen

Fork of PM2_Example_Summer_School by Alex Hawkins

Branch:
a-star
Revision:
51:884fca7f02de
Parent:
49:7da71f479dac
Child:
61:9b1fc2bc7172
--- a/Robot_Library/robot.h	Wed May 25 13:57:22 2022 +0200
+++ b/Robot_Library/robot.h	Wed May 25 14:41:59 2022 +0200
@@ -1,8 +1,10 @@
 #ifndef ROBOT
 #define ROBOT
 
+#include "mbed.h"
 #include "I2C.h"
 #include "SensorBar.h"
+#include "SDFileSystem.h"
 #include "controller.h"
 
 
@@ -81,6 +83,10 @@
         Eigen::Vector2f wheel_speed_actual;     // Measured wheel speeds
         Eigen::Vector2f robot_speed_actual;     // Measured robot speed
 
+        // data storage
+
+        SDFileSystem sd;
+        bool sd_on;
 
  // TODO, pas in motors as seperate objects n stuff ? not sure