Easy Training / Mbed 2 deprecated Teach_demo

Dependencies:   mbed Teach memory

Committer:
MarcelPortmann
Date:
Wed Mar 25 21:36:24 2020 +0000
Revision:
0:ad924d8a2f98
Child:
1:33fdaabcdeda
teach class in construction

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MarcelPortmann 0:ad924d8a2f98 1 /*
MarcelPortmann 0:ad924d8a2f98 2 teach function:
MarcelPortmann 0:ad924d8a2f98 3 Class to aquier new tranings for the EasyFit Device.
MarcelPortmann 0:ad924d8a2f98 4 It Records a position in the 3d room and puts the them in serie to create a "hose" to
MarcelPortmann 0:ad924d8a2f98 5 be repeated in the mode Training.
MarcelPortmann 0:ad924d8a2f98 6
MarcelPortmann 0:ad924d8a2f98 7 when questions ask someone else
MarcelPortmann 0:ad924d8a2f98 8 the autor is not responsible for any spelling mistakes
MarcelPortmann 0:ad924d8a2f98 9
MarcelPortmann 0:ad924d8a2f98 10 */
MarcelPortmann 0:ad924d8a2f98 11
MarcelPortmann 0:ad924d8a2f98 12 #ifndef teach_H // no idea what this does
MarcelPortmann 0:ad924d8a2f98 13 #define teach_H // seems important
MarcelPortmann 0:ad924d8a2f98 14
MarcelPortmann 0:ad924d8a2f98 15
MarcelPortmann 0:ad924d8a2f98 16 class teach
MarcelPortmann 0:ad924d8a2f98 17 {
MarcelPortmann 0:ad924d8a2f98 18 public:
MarcelPortmann 0:ad924d8a2f98 19 teach(void); // Sets all parameters for the class teach constructor
MarcelPortmann 0:ad924d8a2f98 20
MarcelPortmann 0:ad924d8a2f98 21 //values to be used outside of class --> aka global variabels
MarcelPortmann 0:ad924d8a2f98 22 //int initvalue; //startvalue for sum
MarcelPortmann 0:ad924d8a2f98 23 //int inc; //the value to increment by
MarcelPortmann 0:ad924d8a2f98 24
MarcelPortmann 0:ad924d8a2f98 25 //functions to be used outside of class
MarcelPortmann 0:ad924d8a2f98 26 void start(void); //Starts the teach function
MarcelPortmann 0:ad924d8a2f98 27 void decide(bool b); //wen calld from main skips out of pause decides
MarcelPortmann 0:ad924d8a2f98 28 void stop(void); //abort abord danger
MarcelPortmann 0:ad924d8a2f98 29
MarcelPortmann 0:ad924d8a2f98 30 private:
MarcelPortmann 0:ad924d8a2f98 31 int k,i; // Counters for data recording
MarcelPortmann 0:ad924d8a2f98 32 void temp_store(int k, int i, float* Data); // Stors data temporary; Data==Pointer to a Data Array (position(x,y,z),time)
MarcelPortmann 0:ad924d8a2f98 33 void hose_builder(float*,float*,int length); // Creates a hose out of al the points in th room
MarcelPortmann 0:ad924d8a2f98 34 // objekte von display,memory,position // für interaktion mit anderen Klassen
MarcelPortmann 0:ad924d8a2f98 35
MarcelPortmann 0:ad924d8a2f98 36 };
MarcelPortmann 0:ad924d8a2f98 37
MarcelPortmann 0:ad924d8a2f98 38 #endif
MarcelPortmann 0:ad924d8a2f98 39
MarcelPortmann 0:ad924d8a2f98 40
MarcelPortmann 0:ad924d8a2f98 41
MarcelPortmann 0:ad924d8a2f98 42
MarcelPortmann 0:ad924d8a2f98 43