@James and Serge,

I could reproduce your strange behavior.
After OnStep ColdStart and if Telescope was Parked I receive the Status "nNPH" which is At Home and Parked.
I checked OnStep response on :GR# and :GD# and effectively the coordinates are wrong RA=0 DE=0
After unparking whatver I do it in a terminal or from Kstars I get the right Parking RA/DE

So it is definitively not related to the driver.

Have a try to connect with my driver after OnStep Coldstart

Read More...

Serge,

Strange, I just made a test to reproduce your observation.
When I start Kstars and then Ekos I see the telescope where it should be and I have no problem with unparking.
Which xml files are you speaking about?

Read More...

James,

First test of your onw-goto is promising.
Everything worked fine.
I continue testing and review your code

2021-07-20T18:17:10 Shutdown complete.
2021-07-20T18:17:10 Ekos stopped.
2021-07-20T18:17:09 INDI devices disconnected.
2021-07-20T18:17:06 Dome parked.
2021-07-20T18:16:49 Parking dome...
2021-07-20T18:16:48 Mount parked.
2021-07-20T18:16:47 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:46 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:45 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:44 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:43 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:42 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:41 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:40 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:39 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:38 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:37 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:36 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:35 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:34 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:33 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:32 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:31 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:30 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:29 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:28 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:27 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:26 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:25 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:24 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:23 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:22 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:21 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:20 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:19 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:18 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:17 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:16 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:15 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:14 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:13 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:12 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:11 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:10 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:09 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:08 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:07 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:06 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:05 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:04 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:03 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:02 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:01 Warning: mount park operation timed out on last attempt.
2021-07-20T18:16:00 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:59 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:58 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:57 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:56 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:55 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:54 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:53 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:52 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:51 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:50 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:49 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:48 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:47 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:46 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:45 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:44 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:43 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:42 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:41 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:40 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:39 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:38 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:37 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:36 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:35 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:34 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:33 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:32 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:31 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:30 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:29 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:28 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:27 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:26 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:25 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:24 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:23 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:22 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:21 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:20 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:19 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:18 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:17 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:16 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:15 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:14 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:13 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:12 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:11 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:10 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:09 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:08 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:07 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:06 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:05 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:04 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:03 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:02 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:01 Warning: mount park operation timed out on last attempt.
2021-07-20T18:15:00 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:59 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:58 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:57 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:56 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:55 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:54 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:53 Warning: mount park operation timed out on last attempt.
2021-07-20T18:14:52 Parking mount in progress...
2021-07-20T18:14:52 Warning: mount park operation timed out on attempt 4/5. Restarting operation...
2021-07-20T18:14:51 Parking mount in progress...
2021-07-20T18:14:51 Warning: mount park operation timed out on attempt 3/5. Restarting operation...
2021-07-20T18:14:50 Parking mount in progress...
2021-07-20T18:14:50 Warning: mount park operation timed out on attempt 2/5. Restarting operation...
2021-07-20T18:14:49 Parking mount in progress...
2021-07-20T18:14:49 Warning: mount park operation timed out on attempt 1/5. Restarting operation...
2021-07-20T18:13:48 Parking mount in progress...
2021-07-20T18:13:47 No jobs left in the scheduler queue.
2021-07-20T18:13:46 Job 'Navi' is complete.
2021-07-20T18:13:25 Job 'Navi' capture is in progress...
2021-07-20T18:13:25 Job 'Navi' slew is complete.
2021-07-20T18:10:17 Job 'Navi' is slewing to target.
2021-07-20T18:10:14 Mount unparked.
2021-07-20T18:10:12 Dome unparked.
2021-07-20T18:10:06 Unparking dome...
2021-07-20T18:10:05 INDI devices connected.
2021-07-20T18:10:05 Ekos started.
2021-07-20T18:10:00 Scheduler started.

Read More...

James,

we have an Old Story from Mr "Jean de La Fontaine" called the Haze and the Turtle.
So going slow and safe is also my view, otherwise I would have pushed to Indi Directly.
We can wait for pushing to Master for two reasons:
- Lamba use most probably do notice nothing because they do not use advanced features
- Advanced users can test your or my branch and test it if they want.

I will have a look on yout updated Own-Goto soon

Read More...

Serge I am happy it works with your setup.
Unfortunately I don't have all this equipment and extensive testing is not easy on simulation so I thank you a lot for your efforts.

Now I think it would be good to include the changes into Indi's Master.
I will check how to do that.

Read More...

Claus,

it seems working according to the last tests I did (see logs)
Done with CCD simulator, CCD Guide Simulator, Dome Simulator and OnStep.
The Dome parking waits on OnStep in park position and Ekos shuts down only when Dome is really parked.
I will push the changes to my git and continue more complex testing

2021-07-16T11:54:47 Shutdown complete.
2021-07-16T11:54:47 Ekos stopped.
2021-07-16T11:54:46 INDI devices disconnected.
2021-07-16T11:54:43 Dome parked.
2021-07-16T11:54:26 Parking dome...
2021-07-16T11:54:25 Mount parked.
2021-07-16T11:53:39 Parking mount in progress...
2021-07-16T11:53:38 No jobs left in the scheduler queue.
2021-07-16T11:53:37 Job 'Thuban' is complete.
2021-07-16T11:53:16 Job 'Thuban' capture is in progress...
2021-07-16T11:53:16 Job 'Thuban' slew is complete.
2021-07-16T11:52:24 Job 'Thuban' is slewing to target.
2021-07-16T11:52:21 Mount unparked.
2021-07-16T11:52:19 Dome unparked.
2021-07-16T11:52:13 Unparking dome...
2021-07-16T11:52:12 INDI devices connected.
2021-07-16T11:52:12 Ekos started.
2021-07-16T11:52:07 Scheduler started.

Read More...

Serge,

I believe I found the issue.
Finally it is in the driver where TrackState should be changed right after starting the Park .
According to me this is a strange behavior, because changing the Scope Status before having the feedback from the firmware is a bad thing.
So I am still not happy with that.

Read More...

Serge,

there are many others discrepancies for what concerns Telescope Status between Indi- Driver, Kstars, Indi_kstars and Ekos.
Ekos Mont Control Buttons and Indi Control Panel Buttons for example do not show the same state ...
I hope we will find out what is goin on ...

Read More...

Claus,

I noticed that but was not aware it interferes with observatory parking simply because I did not put this in the sequence.
Anyhow I am sure it is not related to the Driver but to the Sequencer.
I will setup a sequence with observatory and see what it does.
But debugging Kstars / Ekos is another thing ... but I will try :-)

Read More...

Claus,

The last version I have online on github.com/azwing/indi is working fine.
I tested many cases in Ekos and using scheduler.
Most probably it will be the base for the next pull request if James agrees.
So it would really be nice if you could make a trial.

regards

Read More...

Claus,

I understand your downgrade to a previous version of Indi, but I see no rationale for the downgrade of Ubuntu.
Some library issues or related to Kstars?

Read More...

James,

I tested the "own-goto" branch and I found ti does work except for the unpark issue.

I also checked the behavior whithout testing (strcmp(OSStat, OldOSStat) != 0) no change so test might be overkill but for sure not the reason.

So far all my tests with Scheduler were successful, the only change I made in my code is the SetParked(false); in case of failure but only if if (isParked()) is true

Read More...

Khalid,

I didn't use the scheduler till now so I was not aware about all these things.
But now that I try to reproduce the behavior Claus is seeing I discover a lot of things where I get more and more confused.
So far I did check, Telescope Status is only managed by "TrackState" and running Indi in debugger it appears that this variable is reflecting what wee expect (the firmware status IDLE, SLEWING, TRACKING, PARKING and PARKED) but Ekos shows some other states like "Moving E, Moving W .... so what Ekos shows is definitively not directly reflecting the Firmware state and may be this is what creates confusion.

But fo now I did some tests whith the Scheduler and it seems to work as expected with the version I have on my git
github.com/azwing/indi

@ Claus,

I don't use CDC. Does it have a scheduler?

Read More...

Hi Claus,I did another test this morning.A sequence:- Unpark- Track Venus- Take a suite of shots- Track Mars- Take a suite of shots- ParkI include as attachment the logs so that you can see whats going on.For me everything works fine but there might be some confusion between what Ekos Scheduler reports and what the actual TrackState is.At end of sequence it says mount parked but in fact it refers to the scheduler not to the TrackState[2021-07-09T12:03:05.677 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Job 'Mars' 5x1\" Luminance completed its sequence of 0 light frames."[2021-07-09T12:03:05.683 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "No jobs left in the scheduler queue."[2021-07-09T12:03:05.684 CEST INFO ][ org.kde.kstars.ekos.scheduler] - Starting shutdown process...[2021-07-09T12:03:06.740 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Parking mount in progress..."[2021-07-09T12:03:07.432 CEST DEBG ][     org.kde.kstars.ekos.mount] - Mount status changed from  "Tracking"  to  "Slewing"[2021-07-09T12:03:07.438 CEST INFO ][     org.kde.kstars.ekos.guide] - "Mount is moving. Resetting calibration..."[2021-07-09T12:03:07.440 CEST INFO ][     org.kde.kstars.ekos.guide] - "Calibration is cleared."[2021-07-09T12:03:07.789 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Mount parked."[2021-07-09T12:03:10.933 CEST INFO ][ org.kde.kstars.ekos.scheduler] - Disconnecting INDI...

Read More...