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.
Diff: training.h
- Revision:
- 2:0df0d0be0664
- Parent:
- 1:aa8497b98ef4
- Child:
- 3:1ce1b3915621
diff -r aa8497b98ef4 -r 0df0d0be0664 training.h
--- a/training.h Tue Apr 28 14:00:18 2020 +0000
+++ b/training.h Wed Apr 29 08:31:33 2020 +0000
@@ -10,6 +10,19 @@
*/
+/*
+Typical Programm use example
+1. call constructor and creat object; training test();
+2. load selectet training into function test.load_training(string name);
+3. set all parameters to begin training test.start_training(void);
+4. during training compair all points with the recordet ones test.compire_point(float posx,float posy,float posz, int time);
+5. repeat point 4 until the end of the trainings sesion
+6. finish training and saves status to memory at block name test.end_training(string name);
+
+to get a intermediat reading from the status use test.get_status(void);
+
+*/
+
#include <vector>
#include <string>
#include "mbed.h"
@@ -39,7 +52,8 @@
void load_training(string name); // loads a training from the sd card into the flash
void start_training(void); // sets all parameters to begin training
void compire_point(float posx,float posy,float posz, int time); // compairs curent point to memory point and counts repetitions
- void end_training(void); // creates a feedback and stores it into the SD card
+ void end_training(string name); // creates a feedback and stores it into the SD card
+ int* get_status(void); // returns a pointer to an int array with fail pot, time short, time long, pointcount
private:
@@ -52,7 +66,7 @@
memory loading;
string tr_name;
struct posdata temp;
-
+ int status_array[4];
};