Skip to content

Commit

Permalink
fixed angle reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
klavins committed Mar 13, 2020
1 parent ac8a65e commit 5d406ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/track_heading/src/robot.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RobotController : public Process, public AgentInterface {
counter = 0;
}
track_velocity(20,30*sin(desired_heading-angle()) - 100*angular_velocity());
label(std::to_string((int) (2*desired_heading/M_PI)) + " pi",15,-15);
label(std::to_string(((int) (2*desired_heading/M_PI))/2.0) + " pi",15,-15);
}
void stop() {}

Expand Down

0 comments on commit 5d406ec

Please sign in to comment.