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.cpp
- Revision:
- 2:0df0d0be0664
- Parent:
- 1:aa8497b98ef4
- Child:
- 4:4e871024310a
diff -r aa8497b98ef4 -r 0df0d0be0664 training.cpp
--- a/training.cpp Tue Apr 28 14:00:18 2020 +0000
+++ b/training.cpp Wed Apr 29 08:31:33 2020 +0000
@@ -24,16 +24,16 @@
int sice = 50;
//sice = loading.size(tr_name)
- for(i = 0; i<sice; i++) { // loads the whole trainings data into data vector
+ for(i = 0; i<sice; i++) { // loads the whole trainings data into data vector
loading.AuslesenPositionsdaten(tr_name,i);
temp.time = loading.zahl[0];
temp.pos[0] = loading.zahl[1];
temp.pos[1] = loading.zahl[2];
temp.pos[2] = loading.zahl[3];
- temp.start = loading.zahl[4]; // fragen wegen status eintrag
- temp.end = loading.zahl[5];
-
+ temp.start = loading.zahl[4]; // fragen wegen status eintrag
+ temp.end = loading.zahl[5];
+
data_vec.push_back(temp);
@@ -88,7 +88,17 @@
}
-void training::end_training(void)
+int* training::get_status(void)
+{
+ status_array[0] = fail_pos;
+ status_array[1] = time_short;
+ status_array[2] = time_long;
+ status_array[3] = repet;
+
+ return status_array;
+}
+
+void training::end_training(string name)
{
// writhe status to memory / update memory
}
\ No newline at end of file