Add PWM motor control and refactor engine update
Introduce ENA pins for both motors and implement rpmToPwm and setMotor. Replace extensive Serial debug prints with concise motor‑drive logic in Engine::update. Consolidate sonar pins into a single TRIG_AND_ECHO_PIN. Update pinMode calls in the sketch to configure the new ENA pins.
This commit is contained in:
Reference in New Issue
Block a user