cansat program1
Dependencies: ADXL345 BME280 HMC5883L ITG3200 MBed_Adafruit-GPS-Library XBee agzIDLIST cansat mbed
Fork of Cansat_program4_1 by
Diff: main.cpp
- Revision:
- 9:2741e17438d6
- Parent:
- 7:db6b436c0baa
- Child:
- 10:ce253d8a5f2c
--- a/main.cpp Sat Aug 08 16:29:30 2015 +0000 +++ b/main.cpp Sun Aug 09 15:05:57 2015 +0000 @@ -242,7 +242,7 @@ else{ angle = atan2(abs(robot_x), robot_y); } - return angle * 180.0 / M_PI + 270; + return 360 - angle * 180.0 / M_PI; } return -1;