]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Merge branch 'master' of zidekm1@rtime.felk.cvut.cz:/var/git/eurobot
authorMartin Zidek <zidekm1@gmail.com>
Sat, 25 Apr 2009 05:20:26 +0000 (07:20 +0200)
committerMartin Zidek <zidekm1@gmail.com>
Sat, 25 Apr 2009 05:20:26 +0000 (07:20 +0200)
src/uoled/oledlib.cc

index 49a55fc4521be98aa1492c5af1db8e9045fcabd0..a0ad2342a4508902db2a8d8a6eea304a6e5887b2 100644 (file)
@@ -9,6 +9,7 @@
 #include <robottype.h>
 #include <robottype.h>
 #include <robot.h>
+#include <robomath.h>
 
 #include "oledlib.h"
 
@@ -98,7 +99,7 @@ int oled_send_position(uint8_t *buff, int buff_size, struct est_pos_type *pos)
        
        sprintf((char*)(buff+5),"%1.2f",pos->y);
 
-       sprintf((char*)(buff+9),"%1.2f",pos->phi);
+       sprintf((char*)(buff+9),"%3.0f ",fabs(RAD2DEG(pos->phi)));
 
        *(buff+13) = MSG_TERM;