Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Revision:
30:ccf5fa970bd2
Parent:
29:b1a18d0493c9
Child:
31:434a78739a59
diff -r b1a18d0493c9 -r ccf5fa970bd2 main.cpp
--- a/main.cpp	Tue Oct 11 12:27:22 2022 +0000
+++ b/main.cpp	Tue Oct 11 12:38:39 2022 +0000
@@ -8,7 +8,7 @@
 DigitalOut led4(LED4);
 
 // Minimum and maximum motor speeds
-#define MAX 1.0
+#define MAX 0.80
 #define MIN 0
 
 // PID terms
@@ -164,7 +164,7 @@
 int PitTest(void){
 /* Test the batteri voltage if the robot is not headed for pit */ 
     
-    const float BATVOLTTRESHOLD = 4.50; // Treshold i volt
+    const float BATVOLTTRESHOLD = 0.05; // Treshold i volt
     int result = 0;
     
     /*Test if the voltage is below the threshold if so turn on go to pit mode*/