/* FIXME maybe it is not correct to do this nasty hack here (switch dleft and dright),
what is the right solution?
This was neccessary to view motor odometry correctly in robomon. */
- dright = ((robot.motion_irc.left - instance->left) >> 8) * c * robot.odo_cal_b;
- dleft = ((instance->right - robot.motion_irc.right) >> 8) * c * robot.odo_cal_a;
+ dright = ((robot.motion_irc.left - instance->left) >> 8) * c;
+ dleft = ((instance->right - robot.motion_irc.right) >> 8) * c;
dtang = (dleft + dright) / 2.0;
dphi = (dright - dleft) / (2.0*ROBOT_ROTATION_RADIUS_M);
ROBOT_LOCK(est_pos_odo);
- robot.odo_distance_a +=dleft;
- robot.odo_distance_b +=dright;
double a = robot.est_pos_odo.phi;
robot.est_pos_odo.x += dtang*cos(a);
robot.est_pos_odo.y += dtang*sin(a);
{
int rv = 0;
- robot.orte.strength = 20;
-
rv = robottype_roboorte_init(&robot.orte);
if (rv)
return rv;