Skip to content
Snippets Groups Projects
Commit 0f3b1227 authored by José Luis Rivero Partida's avatar José Luis Rivero Partida
Browse files

Fix variable name

parent 75c1a107
No related branches found
No related tags found
No related merge requests found
......@@ -192,13 +192,13 @@ CSegwayRMP400::get_yaw_displacement()
{
need_to_be_connected();
float yaw_displacement_mts = (segways_[0]->get_yaw_displacement() +
float yaw_displacement_tmp = (segways_[0]->get_yaw_displacement() +
segways_[1]->get_yaw_displacement()) / 2;
if (use_correction_wheel_factor_)
fix_with_wheel_factor(yaw_displacement_mts);
fix_with_wheel_factor(yaw_displacement_tmp);
yaw_displacement_ = yaw_displacement_mts * 2 * PI; // convert to radians
yaw_displacement_ = yaw_displacement_tmp * 2 * PI; // convert to radians
return yaw_displacement_;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment