Easy Training / Mbed 2 deprecated Teach_demo

Dependencies:   mbed Teach memory

Revision:
3:b22580585b9c
Parent:
2:6dc660d146b7
--- a/teach.h	Wed Apr 22 08:39:40 2020 +0000
+++ b/teach.h	Mon Apr 27 05:07:00 2020 +0000
@@ -10,6 +10,7 @@
 */
 #include <vector>
 #include "mbed.h"
+#include "memory.h"
 
 #ifndef teach_H                                         // no idea what this does
 #define teach_H                                         // seems important
@@ -40,7 +41,7 @@
     void setstart(float posx,float posy,float posz, int time); // creates a temporary begin of line point       
     void setpoint(float posx,float posy,float posz, int time); // creates a temporary position point
     void setend(float posx,float posy,float posz, int time);   // creates a temporary end of line point
-    void save(void);                                           // wen calld from main stores the whole training in memory
+    void save(string name);                                    // wen calld from main stores the whole training in memory
     void stop(void);                                           // deleats all temp data and resets counters/pointers
     
 private:
@@ -50,6 +51,8 @@
     void process(void);                                  // rounds the houses to trainings
     void contr_sice(void);                               // controlls the sice of temp array
     struct posdata temp;                                 // temporary data storage
+    memory store;                                        // store and load data from memory
+    string tr_name;
     
     // objekte von display,memory,position               // für interaktion mit anderen Klassen