@@ -191,7 +191,7 @@ TEST(CommandTest, proportionalOnlyTest)
191191
192192 // If call again doubling the error
193193 cmd = pid.computeCommand (-1.0 , ros::Duration (1.0 ));
194- // Then expect the command doubl-ed
194+ // Then expect the command doubled
195195 EXPECT_EQ (-1.0 , cmd);
196196
197197 // If call with positive error
@@ -215,12 +215,12 @@ TEST(CommandTest, integralOnlyTest)
215215
216216 // If call again with same arguments
217217 cmd = pid.computeCommand (-0.5 , ros::Duration (1.0 ));
218- // Then expect the integration do it part doubling the command
218+ // Then expect the integral part to double the command
219219 EXPECT_EQ (-1.0 , cmd);
220220
221221 // Call again with no error
222222 cmd = pid.computeCommand (0.0 , ros::Duration (1.0 ));
223- // Expect the integral part to keep the previous command because ensure error = 0
223+ // Expect the integral part to keep the previous command because it ensures error = 0
224224 EXPECT_EQ (-1.0 , cmd);
225225
226226 // Double check that the integral contribution keep the previous command
@@ -282,7 +282,7 @@ TEST(CommandTest, completePIDTest)
282282
283283 // If call again with same arguments, no error change, but integration do its part
284284 cmd = pid.computeCommand (-0.5 , ros::Duration (1.0 ));
285- // Then expect command = 3x error againa
285+ // Then expect command = 3x error again
286286 EXPECT_EQ (-1.5 , cmd);
287287
288288 // If call again increasing the error
0 commit comments