
Target speed
Category
motor-specific
Offset
2
Type
signed 16-bit
Range
−800 to 800
Default
0
Command
Set speed
Set all speeds
Set all speeds using buffers
Arduino library
void setSpeed(uint8_t motor, int16_t speed)
void setSpeedNow(uint8_t motor, int16_t speed)
void setAllSpeeds(int16_t speed1, ...)
void setAllSpeedsNow(int16_t speed1, ...)
void setAllSpeedsUsingBuffers()
void setAllSpeedsNowUsingBuffers()
void getTargetSpeed(uint8_t motor)
This is the speed at which the motor has been commanded to move. The “Current speed”
(documented below) will move towards this over time, limited by the acceleration and deceleration
limits (if enabled).
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
8. Variable reference
Page 42 of 67