Detailed description of what Motor Minimum is and how to program it
as mentioned in my first video • How to Balance Robot P...
PWM = map(abs (PID), 0, PIDMax, MinPower , 255);
PID is the output from the PID loop
PIDMax is the max output the PID loop can generate
MinPower is the PWM (Pulse Width Modulation) value where the motors just stop moving
abs() is a C function that changes negative values to it's positive abs(-25) = 25
map() is an arduino C function that shifts an integer value from one range to a new range.
Негізгі бет Ғылым және технология What is "Motor Minimums" in 60 seconds
Пікірлер: 11