Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Finding the *final* Servo Center values? (http://www.chiefdelphi.com/forums/showthread.php?t=42443)

Andrew Blair 22-01-2006 16:51

Finding the *final* Servo Center values?
 
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.

Kevin Watson 22-01-2006 17:43

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

Andrew Blair 22-01-2006 18:02

Re: Finding the *final* Servo Center values?
 
Thanks!


All times are GMT -5. The time now is 01:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi