From 231eccd4568b4e1c6f55cd8d1035e418b842ff16 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 25 Apr 2009 12:47:50 +0200 Subject: [PATCH] Fix angle sign on display --- src/uoled/oledlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uoled/oledlib.cc b/src/uoled/oledlib.cc index a0ad2342..87335d84 100644 --- a/src/uoled/oledlib.cc +++ b/src/uoled/oledlib.cc @@ -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; -- 2.39.2