E2016-S1-Team5 / Mbed 2 deprecated Team5_kode

Dependencies:   mbed

Fork of Team5_kode by Kim Nielsen

Files at this revision

API Documentation at this revision

Comitter:
kimnielsen
Date:
Wed Nov 02 08:11:24 2016 +0000
Parent:
2:1c27a43bb9b7
Commit message:
asd

Changed in this revision

robot.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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