|
Re: Robot too sensitive. How do I fix this?
*Warning, I have never actually programmed an FRC robot*
In order to solve the problem with the older robot you will need to look at how the code works. For a 1 stick arcade, the turning is likely determined by taking the X axis input of the joystick and adding it to one side and subtracting from the other. If you divide this input by a constant before it is applied to the motors it should make the controls less sensitive.
In terms of limiting the max output via programming there are a few ways to do this. You can leave the control scaling the way it is and simply limit the motors to a certain value by testing with IF statements if the motor is above the max forward or below the max reverse and setting it to the max value if it is too high.
You can also rescale your controls using a constant as described above such that a full forward input on the joystick corresponds to a less than full output on the motors.
Others will probably be able to give you better specifics with regard to exact syntax, but this should get you started.
__________________
2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
|