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