View Single Post
  #11   Spotlight this post!  
Unread 01-12-2006, 13:03
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
Re: Auto Mode!!! WHOA...what tha?

Here is an example of what would happen if you did not restate ur pwm's

NOT DECLARING

if (rc_dig_in01 == 0)
{
pwm01 = 0;
}

(pwm01 would stay at the value 0 when button is pressed. Once its unpressed, the value will stay at 0.)

DECLARING

if (rc_dig_in01 == 0)
{
pwm01 = 0;
}

(When button is pressed value will be 0. When it is unpressed, the value will be 127