Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Teach memory
Diff: teach.h
- Revision:
- 4:096b6393659d
- Parent:
- 3:b22580585b9c
--- a/teach.h Mon Apr 27 05:07:00 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,66 +0,0 @@ -/* -teach function: -Class to aquier new tranings for the EasyFit Device. -It Records a position in the 3d room and puts the them in serie to create a "hose" to -be repeated in the mode Training. - -when questions ask someone else -the autor is not responsible for any spelling mistakes - -*/ -#include <vector> -#include "mbed.h" -#include "memory.h" - -#ifndef teach_H // no idea what this does -#define teach_H // seems important - -#define MAX_SIZE 500000000 // maximal usebal flash befor error - -struct posdata{ - int time; - int hi, low; - bool end, start; - float pos[3]; -}; - -struct temp_arry{ - int time; - float pos[3]; -}; - - - -class teach -{ -public: - teach(void); // Sets all parameters for the class teach constructor - - - //functions to be used outside of class - 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(string name); // wen calld from main stores the whole training in memory - void stop(void); // deleats all temp data and resets counters/pointers - -private: - std::vector<posdata> data_vec; // Vektor mit allen datenpunkten - int highcount,lowcount; // Counters for data recording - void temp_store(void); // Stors data temporary; Data==Pointer to a Data Array (position(x,y,z),time) - 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 - -}; - -#endif - - - - - \ No newline at end of file