|
Re: speed change in teleop
I'd encourage you to look through the code and find the place where the "too fast" motor is being updated. Right click and probe it and get a sense of what values are being sent. Also, be gentle with the joystick and determine what upper it is that you'd want to send. Now change the code to turn the -1 to 1 value into the "-slow value", and "slow value". Keep probing as you insert a multiply by a number less than one or a divide by a number greater than one. Be sure to make all values default when you are happy with it.
Note that this is not a good solution to fix a gear ratio that is way off, but if there isn't much load on the motor, it will make your drivers way more successful.
Greg McKaskle
|