Skip to content

Commit

Permalink
po
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
  • Loading branch information
yuki-takagi-66 committed Jun 24, 2024
1 parent 3223581 commit 075ff4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void SimplePlanningSimulator::set_input(const Control & cmd, const double acc_by
if (gear == GearCommand::NONE) {
return 0.0;
} else if (gear == GearCommand::REVERSE || gear == GearCommand::REVERSE_2) {
return -acc_by_cmd - acc_by_slope;
return -acc_by_cmd + acc_by_slope;
} else {
return acc_by_cmd + acc_by_slope;
}
Expand Down

0 comments on commit 075ff4a

Please sign in to comment.