Skip to content

Commit 15e132a

Browse files
Update docstring
1 parent e869bd2 commit 15e132a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/control_toolbox/pid.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ namespace control_toolbox
8585
\verbatim
8686
control_toolbox::Pid pid;
8787
pid.initialize(6.0, 1.0, 2.0, 0.3, -0.3);
88-
double position_desi = 0.5;
88+
double position_desired = 0.5;
8989
...
9090
rclcpp::Time last_time = get_clock()->now();
9191
while (true) {
9292
rclcpp::Time time = get_clock()->now();
93-
double effort = pid.compute_command(position_desi - currentPosition(), time - last_time);
93+
double effort = pid.compute_command(position_desired - currentPosition(), time - last_time);
9494
last_time = time;
9595
}
9696
\endverbatim

0 commit comments

Comments
 (0)