Prototyp V2

Dependencies:   PM2_Libary

Branch:
michi
Revision:
84:40d64e0bb1ea
Parent:
83:8cf96ccfac98
Child:
85:fbcc3d8e945a
diff -r 8cf96ccfac98 -r 40d64e0bb1ea main.cpp
--- a/main.cpp	Mon May 02 13:31:04 2022 +0200
+++ b/main.cpp	Mon May 02 13:33:00 2022 +0200
@@ -63,8 +63,8 @@
 // calculations for basic movment and controll
 
 //placeholder variables for prototype testing
-const int   drive_straight_mm = 100;  // placeholder for testing drives amount forward
-const int   drive_back_mm = -100;    // placeholder for testing drives amount backwards
+const int   drive_straight_mm = 200;  // placeholder for testing drives amount forward
+const int   drive_back_mm = -200;    // placeholder for testing drives amount backwards
 int         ToNextFunction = 0;      // current state of the system (which function is beeing executed)
 
 // definition variables for calculations
@@ -204,7 +204,6 @@
     while (true)
     {
         ir_distance_mV = 1.0e3f * ir_analog_in.read() * 3.3f;
-        printf("detection: %d\n",StepDetection(mapping(ir_distance_mV)));
 
         switch (ToNextFunction) 
         {