View Single Post
  #2   Spotlight this post!  
Unread 22-01-2006, 17:43
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: Finding the *final* Servo Center values?

Quote:
Originally Posted by Andrew Blair
I'm using MPlab to play around with writing some fire control code, with the bells and whistles version of the default code. Trouble, I can't seem to find the point in the code where the servo center values are assigned with a value from eeprom or the default settings. I need to write a function that returns the value of center, that the controller has decided to use.
If the software decides to use default values from tracking.h, this is done at the end of tracking.c. If it uses EEPROM, the values are part of a memory block move and not explicitely initialized. See Get_Tracking_Configuration(). Anyway, the values you need are in Tracking_Config_Data.Pan_Center_PWM and Tracking_Config_Data.Tilt_Center_PWM.

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