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

Fix bug in get_yaw_rate function.

Thanks to Joan Perez and Sergi Hernandez for spotting it.
parent bd6eb9a0
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ CSegwayRMP400::get_yaw_rate() ...@@ -207,7 +207,7 @@ CSegwayRMP400::get_yaw_rate()
{ {
need_to_be_connected(); need_to_be_connected();
yaw_rate_ = get_yaw_displacement() * (PI / 180); yaw_rate_ = get_yaw_rate() * (PI / 180);
return yaw_rate_; return yaw_rate_;
} }
......
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