×

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

Bi-monthly release with minor bug fixes and improvements

Moonlite-like focuser

  • Posts: 454
  • Thank you received: 51
Hello all ,
I am recompiling an old program for arduino that use <strong>moonlite protocol</strong> without temperature driving.
Without any mods the program don't works anymore. I use AccelStepper as lib. And the position is coded on long word.
I can connect the arduino to Ekos without problem.
The problem occurs when I try to move to an absolute position greater 65536 or when going back to 0. When I try to go to 6553<strong>7</strong> the counter in Ekos is reset to 0 reaching 65536 and on the decreasing direction the counter is reset to 65536 reaching 0. Looks like if the counter is a short integer (16bits).
I must mention that this program worked fine in the past.
I use for those tests the nightly build of Ekos.
Last edit: 4 years 8 months ago by Patrick.
4 years 8 months ago #40690

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

  • Posts: 554
  • Thank you received: 138

Replied by Chris Rowland on topic Moonlite-like focuser

The Moonlite focuser only uses 16 bit numbers so you can't have a value of 65537, the maximum range is 0 to 65535.
4 years 8 months ago #40692

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

  • Posts: 454
  • Thank you received: 51

Replied by Patrick on topic Moonlite-like focuser

Well that is the answer. Unfortunately my moonlite-like is based on a sketch that worked fine in the past with the moonlite driver of Ekos. So it didn't include this limitation.
Would be nice to have an open driver which use moonlite protocol and would be parametrized on number of steps to avoid such limitations.
4 years 8 months ago #40693

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

  • Posts: 554
  • Thank you received: 138

Replied by Chris Rowland on topic Moonlite-like focuser

If you want to use a driver that's designed for other hardware then you have to make your hardware compatible with the hardware for which the driver is designed.

Changing the driver to suit your incompatible hardware could easily break it for the correct hardware.
4 years 8 months ago #40694

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

  • Posts: 454
  • Thank you received: 51

Replied by Patrick on topic Moonlite-like focuser

You are right. I will rewrite a specific driver for my setup.
4 years 8 months ago #40696

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

Time to create page: 0.426 seconds