MotorController setspeed update with check if it doesn't exceed max
speed