Thread: Radio Probs
View Single Post
  #1   Spotlight this post!  
Unread 08-06-2007, 12:32
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Re: Radio Probs

Quote:
Originally Posted by EHaskins View Post
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 View Post
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