Endelig kildekode med rettelser.

Dependencies:   PID mbed

Fork of EndeligKildekode by E2016-S1-Team5

Revision:
3:30bdc3d9e1c6
Parent:
2:1c27a43bb9b7
Child:
4:62a6681510d6
--- a/robot.cpp	Wed Nov 02 08:05:41 2016 +0000
+++ b/robot.cpp	Wed Nov 02 08:11:24 2016 +0000
@@ -67,13 +67,6 @@
 //fourth position:
 #define fourth_x 70
 #define fourth_y 50
-/*
-=============================================================================
-Calculation of length between points
-=============================================================================
-*/
-  double angle_desire = (second_y-first_y)/(second_x-first_x); 
-  double error_present = atan(angle_desire)-0.785; 
   
 Timer t; // define a timer t
 Serial pc(USBTX, USBRX); // not used here because we only have one serial