Skip to content

Commit 62bf4d3

Browse files
committed
Fix wrong indexes in test
1 parent 16d9aab commit 62bf4d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_script_command_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ TEST_F(ScriptCommandInterfaceTest, test_force_mode)
302302
}
303303

304304
// Test damping return
305-
double received_damping = (double)message[26] / script_command_interface_->MULT_JOINTSTATE;
305+
double received_damping = (double)message[25] / script_command_interface_->MULT_JOINTSTATE;
306306
EXPECT_EQ(received_damping, damping);
307307

308308
// Test Gain scaling return
309-
double received_gain = (double)message[27] / script_command_interface_->MULT_JOINTSTATE;
309+
double received_gain = (double)message[26] / script_command_interface_->MULT_JOINTSTATE;
310310
EXPECT_EQ(received_gain, gain_scaling);
311311

312312
// The rest of the message should be zero

0 commit comments

Comments
 (0)