Skip to content

Commit

Permalink
Remove unused statement causing build error
Browse files Browse the repository at this point in the history
Deleted an unnecessary statement ('1;') in the publish_count_map function of accel_brake_map_calibrator_node.cpp that was causing a build failure due to the -Werror=unused-value flag.

Signed-off-by: N-Eiki <eiki.nagata.2@tier4.jp>
  • Loading branch information
N-Eiki committed Jun 7, 2024
1 parent 28cb715 commit 675edab
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1486,8 +1486,7 @@ void AccelBrakeMapCalibrator::publish_count_map()
"Invalid map. The number of velocity index of accel map and brake map is different.");
return;
}
const double h = static_cast<double>(accel_map_value_.size() + brake_map_value_.size() - 1);
1; // pedal (accel_map_value(0) and brake_map_value(0) is same.)
const double h = static_cast<double>(accel_map_value_.size() + brake_map_value_.size() - 1);// pedal (accel_map_value(0) and brake_map_value(0) is same.)

const double w = static_cast<double>(accel_map_value_.at(0).size()); // velocity
const int8_t max_occ_value = 100;
Expand Down

0 comments on commit 675edab

Please sign in to comment.