×

INDI Library v1.7.9 Released (23 Jun 2019)

INDI Library v1.7.9 is mostly a maintenance release to fix a few bugs in several drivers.

Moonlite-like focuser

  • Posts: 346
  • Karma: 1
  • Thank you received: 42

Moonlite-like focuser was created by patdut

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: 2 weeks 2 days ago by patdut.
2 weeks 2 days ago #40690

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

  • Posts: 154
  • Thank you received: 48

Replied by ChrisRowland 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.
2 weeks 2 days ago #40692

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

  • Posts: 346
  • Karma: 1
  • Thank you received: 42

Replied by patdut 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.
2 weeks 2 days ago #40693

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

  • Posts: 154
  • Thank you received: 48

Replied by ChrisRowland 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.
2 weeks 2 days ago #40694

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

  • Posts: 346
  • Karma: 1
  • Thank you received: 42

Replied by patdut on topic Moonlite-like focuser

You are right. I will rewrite a specific driver for my setup.
2 weeks 2 days ago #40696

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

Time to create page: 0.373 seconds