×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Question on units and tolerance for slews

  • Posts: 322
  • Thank you received: 31
There is a piece of code in various scope models, such as Astro-Physics, FS2, and I implemented it for the Sky Sensor 2000 PC as well.

For example, line 439 Astro-Physics driver .

The code is like this:
double dx = targetRA - currentRA;
double dy = targetDEC - currentDEC;
 
if (fabs(dx) <= (SlewAccuracyN[0].value / (900.0)) && fabs(dy) <= (SlewAccuracyN[1].value / 60.0))
 ... slew is complete

So the question is what units are targetRA and targetDEC?

Why is RA divided by 900 and Dec by 60? Being different units would explain this.

Is the SlewAccuracyN really arc minutes or something else?

Thanks for your feedback.
6 years 4 months ago #20889

Please Log in or Create an account to join the conversation.

RA is in hours while DE is in degrees. So dx is in hours and dy is in degrees. SlewAccuracyN is in arcmins so when converting to hours we divide by 15*60 = 900
Last edit: 6 years 4 months ago by Jasem Mutlaq.
6 years 4 months ago #20895

Please Log in or Create an account to join the conversation.

Time to create page: 0.167 seconds