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.