From 62bf4d3b93780758259651082b439f8687bcc047 Mon Sep 17 00:00:00 2001 From: URJala Date: Tue, 9 Jul 2024 13:47:43 +0000 Subject: [PATCH] Fix wrong indexes in test --- tests/test_script_command_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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