Quote:
Originally Posted by EHaskins
Even when the robot is disabled it is reading input from joysticks.
IF your programmers removed the piece of code setting all the pwm outputs to 127 during autonomous mode those movements could be the result of the robot tryng to move while disabled.
|
Correct me if I'm wrong but I thought the user micro is passed idle values from the master when disabled or in autonomous? I know this is the case on the vex controller, I remember it being the case for the FRC controller as well though I haven't used it in a few years. Otherwise autonomous could still take input from the user.
Quote:
Originally Posted by prograid
I believe what he means is the opposite. The robot can move if it is NOT set to neutral.
In other words, if you don't say pwm01 = pwm02 = ... = 127 at the beginning of your autonomous, the robot can do whatever it wants.
|
To add to what prograid said, you shouldn't ever assume the initialization state of any variables in your program. This can lead to very bad problems, especially since a value of 0, a common initialization value, does not halt the motor! If you do not set the PWM values to idle you can have some very weird and dangerous results.
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge -
http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic