Skip to content

Commit

Permalink
fix(velocity_controller): debug value for feedforward (#3782)
Browse files Browse the repository at this point in the history
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
  • Loading branch information
TakaHoribe authored May 27, 2023
1 parent 3950f81 commit 42d147b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class DebugValues
PITCH_RAW_TRAJ_DEG = 27,
STOP_DIST = 28,
FF_SCALE = 29,
ACC_CMD_FF = 30,
SIZE // this is the number of enum elements
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,8 @@ double PidLongitudinalController::applyVelocityFeedback(
m_debug_values.setValues(DebugValues::TYPE::ACC_CMD_FB_P_CONTRIBUTION, pid_contributions.at(0));
m_debug_values.setValues(DebugValues::TYPE::ACC_CMD_FB_I_CONTRIBUTION, pid_contributions.at(1));
m_debug_values.setValues(DebugValues::TYPE::ACC_CMD_FB_D_CONTRIBUTION, pid_contributions.at(2));
m_debug_values.setValues(DebugValues::TYPE::FF_SCALE, ff_acc);
m_debug_values.setValues(DebugValues::TYPE::FF_SCALE, ff_scale);
m_debug_values.setValues(DebugValues::TYPE::ACC_CMD_FF, ff_acc);

return feedback_acc;
}
Expand Down

0 comments on commit 42d147b

Please sign in to comment.