Re: Error in AP driver
Ajai Sehgal
I have looked at the code and can't see anything that would cause
this. The code is common to all the drivers that I write and so far no issues have been reported. Here is the code. If someone can spot the error I am will certainly fix it: 'Get the longitude from the AP and convert it to degress SiteLongitude = -m_Util.DMSToDegrees(CommandString("Gg")) ' Convert from AP 0-359 westward to ASCOM format +/- 180 +E If SiteLongitude < -180# Then SiteLongitude = SiteLongitude + 360# This is the entire AP documentation on the topic (leaves quite a bit to be desired - as you can see is is VERY open to interpretation: Command: :Gg# Response: +DDD*MM# or +DDD*MM:SS# if long format Gets the current longitude. It would be helpful if you could send me a serial trace of what the AP is reporting back when you query the longitude when east (I can't get to my AP right now because it is in a dome and it is pouring rain here - can't open the dome to get in - remote computer shut itself down - sigh). Please ensure that you have the updated helper2.dll installed from the ASCOM site. This is required as the old version had a bug in it. Ajai --- In ap-gto@..., "Chuck Faranda" <mail_lists2@...> wrote:
|
|