Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jw098 committed Nov 3, 2024
1 parent 0b11ca3 commit 0d22feb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ uint16_t OliveDetector::walk_up_to_olive(
double olive_y = olive.second;

uint16_t scale_factor = 2000;
uint16_t push_duration = std::max(uint16_t(std::pow((0.57 - olive_y), 2) * scale_factor), uint16_t(20));
uint16_t push_duration = std::max(uint16_t((0.57 - olive_y)*(0.57 - olive_y) * scale_factor), uint16_t(20));
console.log("walk_up_to_olive(): olive_y: " + std::to_string(olive_y));
if (olive_y > 0.515){
return ticks_walked;
Expand Down

0 comments on commit 0d22feb

Please sign in to comment.