View Single Post
  #3   Spotlight this post!  
Unread 05-05-2006, 21:39
intellec7's Avatar
intellec7 intellec7 is offline
108 programmer
AKA: Gustavo
FRC #0108 (SigmaC@ts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2006
Location: Hollywood, Florida
Posts: 65
intellec7 is on a distinguished road
Send a message via AIM to intellec7 Send a message via MSN to intellec7
Re: Vex start up code run PWM outputs without Rx

Actually I did search before I posted this message and I read that thread, if I understood correctly, that method was not for me. When I put in
Code:
   txdata.user_cmd = 0x02;       /* Tell master you want to be in auton mode. */
in user init, the autonomous code runs, but I want to maintain the normal program as it is, most of the code is in the function "Process_Data_From_Local_IO". As I look at the code, it appears as if the main loop is calling User_Autonomous_Code and it is never leaving that loop because the flag "autonomous_mode" is never being cleared. Is there another solution to this other than calling "Process_Data_From_Local_IO" from the autonomous loop?

[EDIT]: I have found another way by setting the autonomous loop to "0" is there a prettier way?

Last edited by intellec7 : 05-05-2006 at 22:18.