@@ -550,8 +550,8 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_with_gain)
550
550
// state interface value is 1.1 as defined in test fixture
551
551
// with p gain 0.5, the command value should be 0.5 * (5.0 - 1.1) = 1.95
552
552
// 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 ;
555
555
556
556
SetUpController (" test_pid_controller_with_feedforward_gain" );
557
557
ASSERT_EQ (controller_->on_configure (rclcpp_lifecycle::State ()), NODE_SUCCESS);
@@ -604,7 +604,7 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_with_gain)
604
604
controller_interface::return_type::OK);
605
605
606
606
// 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 );
608
608
}
609
609
610
610
/* *
@@ -617,8 +617,8 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_off_with_gain)
617
617
// with p gain 0.5, the command value should be 0.5 * (5.0 - 1.1) = 1.95
618
618
// with feedforward off, the command value should be still 1.95 even though feedforward gain
619
619
// 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 ;
622
622
623
623
SetUpController (" test_pid_controller_with_feedforward_gain" );
624
624
ASSERT_EQ (controller_->on_configure (rclcpp_lifecycle::State ()), NODE_SUCCESS);
@@ -670,7 +670,7 @@ TEST_F(PidControllerTest, test_update_chained_feedforward_off_with_gain)
670
670
controller_interface::return_type::OK);
671
671
672
672
// 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 );
674
674
}
675
675
676
676
int main (int argc, char ** argv)
0 commit comments