Tobis Programm forked to not destroy your golden files

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

Revision:
38:3526c36e4c73
Parent:
34:40d8d29b44b8
Child:
42:08b3aea29254
Child:
44:7118b23b0fd7
diff -r 20e0e2487efc -r 3526c36e4c73 source/Robot.cpp
--- a/source/Robot.cpp	Tue Apr 04 11:58:34 2017 +0000
+++ b/source/Robot.cpp	Tue Apr 04 15:01:59 2017 +0000
@@ -188,7 +188,8 @@
 
 float read_heading()
 {
-    return imu.readHeading();
+    double deg = (double)(180.0f/(double)M_PI*imu.readHeading());
+    return deg;
 }