Skip to content

Commit 5d406ec

Browse files
committed
fixed angle reporting
1 parent ac8a65e commit 5d406ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/track_heading/src/robot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RobotController : public Process, public AgentInterface {
2222
counter = 0;
2323
}
2424
track_velocity(20,30*sin(desired_heading-angle()) - 100*angular_velocity());
25-
label(std::to_string((int) (2*desired_heading/M_PI)) + " pi",15,-15);
25+
label(std::to_string(((int) (2*desired_heading/M_PI))/2.0) + " pi",15,-15);
2626
}
2727
void stop() {}
2828

0 commit comments

Comments
 (0)