Before parking telescope, NINA sends slew to 89deg delta

Issue #763 closed
Alexey Harchenko created an issue

I’m testing NINA with new eq mount. The mount do not require meridian flip, and cannot slew to high polar angles (about 10deg around pole is inaccessible).

When I park telescope from NINA Equipment screen, telescope goes far in NW-direction. In ASCOM trace file I see call to SlewToCoordinates(RA~=5h, Dec~=89deg)

Then, I press [Stop] in NINA, or in my “service” program and abort motion. After that, NINA send correct Park command and telescope parks.

This issue occurs in release 1.10H and in nightly buids too.

Mount cannot slew to pole, this is hardware, mechanical limitation.

In source code I found:

[TelescopeVM.cs, around line 133]

private Coordinates GetHomeCoordinates(Coordinates currentCoordinates) {

[SKIP]

                returnCoordinates.Dec = 89;
[TelescopeVM.cs, around line 91]

public async Task<bool> ParkTelescope() {

[SKIP]

Coordinates targetCoords = GetHomeCoordinates(Telescope.Coordinates);

                Logger.Trace(String.Format("Telescope will slew to RA {0} and Dec {1}", targetCoords.RAString, targetCoords.DecString));

                await SlewToCoordinatesAsync(targetCoords);

                Logger.Trace("Telescope will stop tracking");

                SetTracking(false);

                Logger.Trace("Telescope will now park according to mount defined park method");

                return await Task.Run<bool>(() => { Telescope.Park(); return true; });

So, question is - why NINA calls SlewToCoordinates() before Park(), and how to fix or workaround it? What means hardcoded 89deg? Meridian flip is not needed for the mount, it’s fork-like, not german mount. ASCOM returns CanSetPierSide = false.

Also, I try to cancel Park from service program (or simple by powering mount off), and NINA has left in “parking” state, where [Park] button is greyed, infinitely. Reconnection of telescope don’t help, only restart NINA.

Sorry, I’m not good in english, and have no experience in git to commit changes.

Thank you.

Comments (4)

  1. Stefan B repo owner

    Hi - thank you for the report.

    It seems that this slew to those coordinates is a fail safe that does more bad than good. We will remove this logic in a future beta and nightly version.

  2. Alexey Harchenko reporter

    Thank You.

    If there’s any hardware or driver that required this slew, you may left it in place.

    For me, it’s not a big problem in future beacuse now I found system issue in ascom mount driver and managed to refactor it and apply a lot of changes.

    What NINA will do if receive InvalidValueException on slew to 89def? If NINA will park correctly after it, extra slew is not a problem.

    I think more serious is that if mount aborts park and not set AtPark state, park function in NINA is disabled and there's no way to repeat Park or Unpark operation. I didn’t test slew in this state.

  3. Log in to comment