Easy Training / Training

Dependents:   Easyfit

Files at this revision

API Documentation at this revision

Comitter:
MarcelPortmann
Date:
Wed May 27 19:19:24 2020 +0000
Parent:
6:f117c1cc9640
Commit message:

Changed in this revision

training.cpp Show annotated file Show diff for this revision Revisions of this file
training.h Show annotated file Show diff for this revision Revisions of this file
--- a/training.cpp	Tue May 26 16:09:49 2020 +0000
+++ b/training.cpp	Wed May 27 19:19:24 2020 +0000
@@ -67,7 +67,7 @@
 
     dist = sqrt(pow(temp_pos[0],2)+pow(temp_pos[1],2)+pow(temp_pos[2],2));
 
-    if(dist>= POSTOL) {                                                         // counts position fail
+    if(dist>= POSTOL && (resetval!= 1)) {                                                         // counts position fail
         fail_pos++;
         resetval = 3;
     }
--- a/training.h	Tue May 26 16:09:49 2020 +0000
+++ b/training.h	Wed May 27 19:19:24 2020 +0000
@@ -31,7 +31,7 @@
 #ifndef training_H          // no idea what this does
 #define training_H          // seems important
 
-#define POSTOL 20           // max pos toleranz point to point in mm
+#define POSTOL 1            // max pos toleranz point to point in mm
 #define TIMETOL 3           // max time toleranz
 #define SHORTMAX 5          // max time to short
 #define LONGMAX 5           // max time to long