×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Driver OnStep (LX200 like) for INDI

  • Posts: 452
  • Thank you received: 71
Hi since I have been sponsored a MaxESP4 board by Chad Gray I am now in position to test OnStep X more easily.
OnStepX has been released for normal users since no more serious bugs have been seen for a while.

The last changes I made seem to work on Both OnStep 4.x.x and OnStep 10.17.x

I think with OnStepX the development arrives at a point where no more major changes will be done so it is time to concentrate on cleaning and tuning the driver.

there are weak points in the driver that need more work:
- Multiple Focuser
- Derotator
- Rotator
These are features that I personally never have tested since I don't have the related set-up (AltAz mount for example)
I will try to work on it but at a certain point nothing is better than running in the field in real situation so help is needed here.

Does anybody already use Altaz mount with derotator with Onstep on Indi?
Feedback is welcome on that topic
The following user(s) said Thank You: Nguyễn Trọng Minh
6 months 4 weeks ago #96311

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

  • Posts: 136
  • Thank you received: 9
I ran into this problem with creating the mount model on Ekos mount modeling tool. The mount running OnstepX
What I did:
1. Point the scope to home position (point to NCP, counterweight at 6 o'clock)
2. Press Start Alignment (9 Stars)
3. Goto to 9 evenly spaced points in the skymap, capture, platesolve and sync the point (the software said syncing successful and the point counter goes up). Do that repeatedly for all 9 points.
After do all 9 points, the software return this error code
Alignment status: response error, response = 9:9
After reaching out to Howard himself, I got this response
That seems to be an INDI OnStep driver bug.
 
I don't use INDI nor am I involved in its OnStep Telescope driver development, but looking at the source code:
https://github.com/indilib/indi/blob/master/drivers/telescope/lx200_OnStep.cpp
 
Line 4674 (at the moment) needs to look like this:
    if(error_or_fail != 4 || read_buffer[0] < '0' || read_buffer[0] > '9' || read_buffer[1] < '0' || read_buffer[1] > ':'
Also now OnstepX support up to 200 alignment point for the mount model, instead of 9. Would someone look into this please?
Last edit: 6 months 2 weeks ago by Nguyễn Trọng Minh.
6 months 2 weeks ago #96651

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

  • Posts: 452
  • Thank you received: 71
Hi,

thanks for the feedback.

Where did you get the proposed code from?

Looking at OnstepX code
// :A?#       Align status
    //            Returns: mno#
    //            where m is the maximum number of alignment stars
    //                  n is the current alignment star (0 otherwise)
    //                  o is the last required alignment star when an alignment is in progress (0 otherwise)
    if (command[1] == '?' && parameter[0] == 0) {
      reply[0] = '0' + ALIGN_MAX_NUM_STARS;
      reply[1] = '0' + alignState.currentStar;
      reply[2] = '0' + alignState.lastStar;
      reply[3] = 0;
      *numericReply = false;
it seems not correct. reply[1] is between 0 and 9 I don't see where it could be ":"

Also the max number of stars is still 9 according to OnStepX code
#define ALIGN_MAX_STARS              AUTO //   AUTO, Uses HAL specified default (either 6 or 9 stars.)                        Infreq
                                          //         Or use n. Where n=1 (for Sync only) or 3 to 9 (for Goto Assist.)
The following user(s) said Thank You: Nguyễn Trọng Minh
Last edit: 6 months 2 weeks ago by Alain Zwingelstein.
6 months 2 weeks ago #96668

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

  • Posts: 136
  • Thank you received: 9
Hi Alan,
Howard Dutton is the author of OnStep and OnStepX. He tried to reach you on indilib forum but ran into some problem posting. So I'll try to relay his message here.
mistake is believing that alignState.currentStar can only assume values up to 9.  It can be 10 in 9-star align mode and being one greater than the number of alignment stars is the condition that signals the alignment is done.
 
So in the code '0' + 10 == ':' which is a bit of an ugly hack but that's how it's done.
6 months 2 weeks ago #96672

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

  • Posts: 452
  • Thank you received: 71
Minh,

I just made a pull request with version 1.21 of lx200_OnStep driver.
This fixes your alignment issue.

Thank you for the comments

code is on : github.com/azwing/indi
The following user(s) said Thank You: Nguyễn Trọng Minh
Last edit: 6 months 2 weeks ago by Alain Zwingelstein.
6 months 2 weeks ago #96677

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

  • Posts: 136
  • Thank you received: 9
I compile from source and updated the driver to 1.2.1 I'll test the alignment and report back the result. Thank you, Alain.
6 months 2 weeks ago #96687

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

  • Posts: 136
  • Thank you received: 9
The aligbment process with 9 stars completed successfully but the goto accuracy does not seems to improve
How do I know the mount model is active?
6 months 2 weeks ago #96707
Attachments:

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

  • Posts: 452
  • Thank you received: 71
How to know the mount model is active?: Good question, I don't know how to check it.
Is there a way to know it from Web , Android or Hand Controller interface? I never saw it!
Have to investigate if there is a command to read this.
For the time being I always relied on the fact that OnStep answered Align Completedand successfull NVM Write

The goto accuracy is Firmware issue not driver.

The Ekos Mount model is never used by OnStep, it is rather just an information.
OnStep does manage entirely the mount model at firmware level, so once all align points are validated it calculates the errors and writes the mount model to the NVRAM / EEprom.
Starting from that point OnStep firmware uses the model but this is anot Indi driven.
The following user(s) said Thank You: Nguyễn Trọng Minh
Last edit: 6 months 1 week ago by Alain Zwingelstein.
6 months 1 week ago #96713

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

  • Posts: 323
  • Thank you received: 32
How to know the mount model is active?

There should be error corrections for Alt and Az.

:GX02# (Azimuth correction)
:GX03# (Altitude correction)

The phone app shows that info too, as well as in INDI.
The following user(s) said Thank You: Nguyễn Trọng Minh
6 months 1 week ago #96714

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

  • Posts: 136
  • Thank you received: 9
I do see the Alt Az correction on INDI mount panel under the Align tab right after Alignment process complete successfully (see image).
But after a reset, the align tab no longer shows the PA error. It simply shows a Start alignment procedure.
The main thing I am curious is the goto accuracy still not improved as much as I thought it would (gotos still off about 400-500 arcsecs, kinda the same as before alignment) for the JTW Trident.
6 months 1 week ago #96716
Attachments:

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

  • Posts: 65
  • Thank you received: 4
OnStep always has a star model when you boot up. It knows your GPS location, UTC Offset and Date time. It knows how many steps per degree it takes to move the mount.

When you do a star alignment you are then changing the model by telling it how far off you are from each target object.

Thus you will get your error of polar alignment as you add alignment stars telling onstep how far off each star is from its default model.

Chad
The following user(s) said Thank You: Alain Zwingelstein, Wieslaw Stawiski
6 months 1 week ago #96717

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

  • Posts: 452
  • Thank you received: 71
Thanks Khalid
your'e right, it is the unique way OnStep confirms successful alignment.
Now it does not explain why his goto accuracy doesn't improve and here it is on OnStep side to search I believe.
The following user(s) said Thank You: Nguyễn Trọng Minh
6 months 1 week ago #96718

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

Time to create page: 1.124 seconds