diff --git a/tests/test_script_command_interface.cpp b/tests/test_script_command_interface.cpp index 88fd00f3..d834502a 100644 --- a/tests/test_script_command_interface.cpp +++ b/tests/test_script_command_interface.cpp @@ -302,11 +302,11 @@ TEST_F(ScriptCommandInterfaceTest, test_force_mode) } // Test damping return - double received_damping = (double)message[26] / script_command_interface_->MULT_JOINTSTATE; + double received_damping = (double)message[25] / script_command_interface_->MULT_JOINTSTATE; EXPECT_EQ(received_damping, damping); // Test Gain scaling return - double received_gain = (double)message[27] / script_command_interface_->MULT_JOINTSTATE; + double received_gain = (double)message[26] / script_command_interface_->MULT_JOINTSTATE; EXPECT_EQ(received_gain, gain_scaling); // The rest of the message should be zero