View Single Post
  #1   Spotlight this post!  
Unread 27-01-2004, 18:44
Code\\Pilot Code\\Pilot is offline
< Only smart people see my avatar
AKA: Rafael Estrada
FRC #1065 (Tatsu)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Florida
Posts: 53
Code\\Pilot is an unknown quantity at this point
Send a message via AIM to Code\\Pilot Send a message via MSN to Code\\Pilot
Question how do i tell to the edurc when the remote is on.

I have created an autonomous mode, I pasted it in the user_routines.c, in the part that says /*add your code here*/, well, it works.
Now i want to find a way to initialize it only when my remote control is off, and stop it when is on.
I tried:
if (PWM_n1 = PWM_n2 = 0) /*where the pwm_n# is the alias given to the*/
{ the whole rutine /* remote inputs */
}
but that does not make it work.
Is there a way i can tell the robot to initialize it when the remote is off?
i will be glad if anybody can help me.
Thanks
Code\\monkey.