From acc0274175d2ea87208cd30fec5eac2f52e966bb Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 25 Dec 2024 02:21:17 +0300 Subject: [PATCH] Minor fix --- flix/motors.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flix/motors.ino b/flix/motors.ino index 36b60e9..a0f7d6b 100644 --- a/flix/motors.ino +++ b/flix/motors.ino @@ -26,7 +26,7 @@ void setupMotors() { Serial.println("Motors initialized"); } -uint8_t getDutyCycle(float value) { // TODO: for canonical +uint8_t getDutyCycle(float value) { value = constrain(value, 0, 1); float duty = mapff(value, 0, 1, 0, (1 << PWM_RESOLUTION) - 1); return round(duty);