@@ -550,8 +550,8 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_with_gain)
550550  //  state interface value is 1.1 as defined in test fixture
551551  //  with p gain 0.5, the command value should be 0.5 * (5.0 - 1.1) = 1.95
552552  //  with feedforward gain 1.0, the command value should be 1.95 + 1.0 * 5.0 = 6.95
553-   auto  target_value = 5.0 ;
554-   auto  exepected_command_value  = 6.95 ;
553+   const   double  target_value = 5.0 ;
554+   const   double  expected_command_value  = 6.95 ;
555555
556556  SetUpController (" test_pid_controller_with_feedforward_gain" 
557557  ASSERT_EQ (controller_->on_configure (rclcpp_lifecycle::State ()), NODE_SUCCESS);
@@ -604,7 +604,7 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_with_gain)
604604    controller_interface::return_type::OK);
605605
606606  //  check on result from update
607-   ASSERT_EQ (controller_->command_interfaces_ [0 ].get_value (), exepected_command_value );
607+   ASSERT_EQ (controller_->command_interfaces_ [0 ].get_value (), expected_command_value );
608608}
609609
610610/* *
@@ -617,8 +617,8 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_off_with_gain)
617617  //  with p gain 0.5, the command value should be 0.5 * (5.0 - 1.1) = 1.95
618618  //  with feedforward off, the command value should be still 1.95 even though feedforward gain
619619  //  is 1.0
620-   auto  target_value = 5.0 ;
621-   auto  exepected_command_value  = 1.95 ;
620+   const   double  target_value = 5.0 ;
621+   const   double  expected_command_value  = 1.95 ;
622622
623623  SetUpController (" test_pid_controller_with_feedforward_gain" 
624624  ASSERT_EQ (controller_->on_configure (rclcpp_lifecycle::State ()), NODE_SUCCESS);
@@ -670,7 +670,7 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_off_with_gain)
670670    controller_interface::return_type::OK);
671671
672672  //  check on result from update
673-   ASSERT_EQ (controller_->command_interfaces_ [0 ].get_value (), exepected_command_value );
673+   ASSERT_EQ (controller_->command_interfaces_ [0 ].get_value (), expected_command_value );
674674}
675675
676676int  main (int  argc, char  ** argv)
0 commit comments