Skip to content

Commit

Permalink
Fix #152 Wrong motor reset on direction change.
Browse files Browse the repository at this point in the history
The speedometer wrongly reseted the speed of the
left motor when it detects a direction change of the
"right" one.
  • Loading branch information
nhjschulz authored and BlueAndi committed Aug 31, 2024
1 parent 718b03c commit 7dc4260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/src/Speedometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void Speedometer::process()

if (currentDrivingDirection != m_lastDirectionRight)
{
resetLeft = true;
resetRight = true;
}

m_lastDirectionRight = currentDrivingDirection;
Expand Down

0 comments on commit 7dc4260

Please sign in to comment.