]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Fix angle sign on display eb2009
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 25 Apr 2009 10:47:50 +0000 (12:47 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 25 Apr 2009 10:47:50 +0000 (12:47 +0200)
src/uoled/oledlib.cc

index a0ad2342a4508902db2a8d8a6eea304a6e5887b2..87335d846ec9eafd383513c2a5e5aee2fdbe3a92 100644 (file)
@@ -99,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),"%3.0f ",fabs(RAD2DEG(pos->phi)));
+       sprintf((char*)(buff+9),"%3.0f ",RAD2DEG(pos->phi));
 
        *(buff+13) = MSG_TERM;