We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3b15ae commit dbfaaf1Copy full SHA for dbfaaf1
Telemetry-Main/LapCounter.cpp
@@ -73,7 +73,7 @@ void LapCounter::updateLapCounter(VehicleState state) {
73
if (abs(data.lap_curr_x_f - data.lap_home_x_f) > X_TOLERANCE) return;
74
if (abs(data.lap_curr_y_f - data.lap_home_y_f) > Y_TOLERANCE) return;
75
if (abs(data.lap_curr_heading_f - data.lap_home_heading_f) > HEADING_TOLERANCE) return;
76
- if (timer.elapsed_time().count() < MIN_LAP_TIME) {
+ if (std::chrono::duration<float>{timer.elapsed_time()}.count() < MIN_LAP_TIME) {
77
timer.reset();
78
timer.start();
79
0 commit comments