Skip to content

Commit

Permalink
Fix wrong indexes in test
Browse files Browse the repository at this point in the history
  • Loading branch information
URJala committed Jul 9, 2024
1 parent 16d9aab commit 62bf4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_script_command_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62bf4d3

Please sign in to comment.