Refactor Engine: remove begin() and dedupe helpers

Removed the empty Engine::begin() method and its declaration.

Moved getRPM, getSpeedKmh, rpmToPwm, and setMotor implementations to the
top of Engine.cpp and deleted their duplicate definitions at the bottom.

Fixed wheel motor PWM calculation by using the raw wheelRPM instead of
wheelRPM * 10.0f.

Deleted the call to engine.begin() in the Arduino setup.
This commit is contained in:
2026-06-17 05:49:37 +02:00
parent a2bb6c557d
commit 1f849e3455
3 changed files with 22 additions and 27 deletions
-1
View File
@@ -46,7 +46,6 @@ void setup() {
rfid.begin();
display.begin(LCD_COLS, LCD_ROWS);
engine.begin();
}
void loop() {