View Single Post
  #2   Spotlight this post!  
Unread 19-01-2004, 00:50
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Placement of Navigate ()

Quote:
Originally Posted by Ian W.
In user_routines_fast.c, Navigate() is called from Process_Data_From_Local_IO. Navigate however, needs to output it's data somewhere, and from my understanding, you need to excute putdata(&txdata) to output data, but I can't find a putdata(&txdata) after Navigate() is called.
The pwmxx variables are global, so they'll be updated the next time putdata() is called in user_routines.c/Process_Data_From_Master_uP().



Quote:
Originally Posted by Ian W.
So, does this mean I'm blind and unable to see lines of code, or that it's just not put in the right place?
Navigate() will need to be called from User_Autonomous_Code() instead of Process_Data_From_Local_IO() if you want to use it during autonomous period. It was placed where it is now so that we could start the demo by pulling the trigger on the joystick.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org