-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
This comment regarding valid motor values is misleading:
Line 44 in ffdc9d6
| # values of -127, -128, +127 are treated as always ON,, no PWM |
The actual usable range of motor values is -100 to 100, according to the source for setMotor in PiconZero08.ino -
// Byte received is unsigned, so anything over 128 is actually negative. Convert to signed int first
// Value 0 = OFF (Low-Low)
// Value 100+ = Forward (High, Low) no PWM
// Value -100 = Backward (Low, High) no PWM
// Value 1..99 = Forward (High, Low) with PWM value == value
// Value -1 .. -99 = Reverse (Low, High) with PWM value == -command)
// PWM is applied to the first motor pin for Forward and the second motor pin for Reverse
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels