Thread: Default Code
View Single Post
  #4   Spotlight this post!  
Unread 11-02-2006, 22:51
bombadier337's Avatar
bombadier337 bombadier337 is offline
1337 U53R
AKA: Shaver
None #1541 (MidloCANics)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Richmond VA
Posts: 123
bombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nice
Send a message via AIM to bombadier337
Re: Default Code

I'm not looking at the code, so I'm doing this from memory but...

There is a routine in user_routines.c called default_routine, which is where all the mapping is done from the controls. This routine is all written, however, it is never called in process_data_from_master_up. Basically call default_routine() before the putdata(&txdata) call and it should do it. The better way to do it is find the comments saying something like "IFI default code" (it's a pretty big block of code), which is all commented out. It has the call to default_routine(), and a bunch of other stuff. If you uncomment all the and put the putdata(&txdata) call after that, you should be fine. Hope that helps!

If you have any questions my IM is on my profile, I'm on a lot and I'd be glad to help you as much as I can.
__________________
Midlothian High School - Team 1541
2005 Radioshack Innovation in Control - NASA/VCU Regional
2005 Rookie Inspiration - NASA/VCU Regional