Commit 961fb696 authored by Agis Zisimatos's avatar Agis Zisimatos

Change the direction of azimuth orientation

Signed-off-by: Agis Zisimatos's avatarzisi <[email protected]m>
parent 5e52770d
......@@ -78,7 +78,7 @@ public:
else if (delta_raw_pos < -180)
_n--;
// Calculate the real angle
real_pos = ((raw_pos + 360 * _n) / _enc_ratio) - _angle_offset;
real_pos = - ((raw_pos + 360 * _n) / _enc_ratio) - _angle_offset;
_raw_prev_pos = raw_pos;
}
*new_pos = (double)real_pos;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment