×

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

Bi-monthly release with minor bug fixes and improvements

[SOLVED] Pulsar 2 (LX200-like) driver

  • Posts: 66
  • Thank you received: 2

Replied by Paolo on topic Pulsar 2 (LX200-like) driver

Perfect, thank you again! It will certainly be much easier now to move on and test the other features. Your help was precious. You can now communicate that INDI supports (in beta version) one more mount, the Pulsar 2 driver (LX200 family).

Cheers
Paolo
8 years 4 months ago #6018

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

  • Posts: 66
  • Thank you received: 2

Replied by Paolo on topic Pulsar 2 (LX200-like) driver

Hello

I have resumed the development of the Pulsar 2 driver, and I find a source of possible conflicts.

Pulsar 2 has an internal clock and it also stores latitude and longitude of the observing site (note that it does not store a time zone). Its clock must be regulated on UTC, and advice is given that an external computer should also be synced to UTC.
If I don't follow that recommendation and I keep the PC on "local" time, I can disable in the INDI client the synchronization of time and location from the PC to the Pulsar (to avoid that Pulsar does not set its own time to local), but than the client PC clock won't have the same time. What are the consequences of that? Maybe none, but I am not 100% sure.
On the other hand if I follow the recommendation and put the PC time at UTC, I think that I cannot probably get the configuration of kstars right for my site/time-zone. By syncing to a star I can always point the telescope right, but all computations relying on altitude and hour angle (for instance, the position of the horizon) will be affected.

How would you solve this riddle?

Regards
Paolo
7 years 10 months ago #8480

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

The INDI frameworks already sends the time in UTC so you can use that directly.
7 years 10 months ago #8485

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

  • Posts: 66
  • Thank you received: 2

Replied by Paolo on topic Pulsar 2 (LX200-like) driver

That's strange, then. When I switch on the Pulsar, it syncs by GPS to UTC. Then, when I connect it to kstars/ekos (in local time), the Pulsar clock switches to local time (as its displays jumps 2 hours later in my case)
7 years 10 months ago #8486

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

If you're syncing to GPS, do not take KStars or INDI client time. Stick to one source. The LX200Pulsar in Subversion is not implementing updateTime(ln_date * utc, double utc_offset); function. It is implemented in LX200Generic but you should override it so you can decide exactly what to do with the time information. The LX200Generic just sets the local time in the controller.
7 years 10 months ago #8488

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

  • Posts: 66
  • Thank you received: 2

Replied by Paolo on topic Pulsar 2 (LX200-like) driver

GPS/time sync problem solved, thank you. But yesterday (in fact, after a svn update) my driver failed to load, with this log:

2016-05-30T20:34:35: startup: /usr/bin/indiserver -v -p 7626 -m 100 -f /tmp/indififo453e6ce3
2016-05-30T20:34:35: listening to port 7626 on fd 3
FIFO: start indi_lx200pulsar2 -n "Pulsar2"
With name:
FIFO: Starting driver indi_lx200pulsar2
2016-05-30T20:34:35: Driver indi_lx200pulsar2: pid=26709 rfd=4 wfd=7 efd=8
2016-05-30T20:34:35: Client 5: new arrival from 127.0.0.1:53888 - welcome!
2016-05-30T20:34:35: Driver indi_lx200pulsar2: initializing from pulsar2 device...
2016-05-30T20:34:35: Driver indi_lx200pulsar2: : symbol lookup error: undefined symbol: _ZN4INDI6Logger5printEPKcjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS2_z
2016-05-30T20:34:35: Driver indi_lx200pulsar2: stderr EOF
2016-05-30T20:34:35: Driver indi_lx200pulsar2: restart #1
2016-05-30T20:34:35: Driver indi_lx200pulsar2: pid=26711 rfd=4 wfd=8 efd=9
2016-05-30T20:34:35: Driver indi_lx200pulsar2: initializing from pulsar2 device...
(.... repeated 10 x...)

the update seems ok, followed by my "sudo make install" with my own pulsar 2 driver version...
Any clues?

Cheers
Paolo
7 years 9 months ago #8566

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

We moved to github (github.com/indilib/indi). Please send me a diff so I can test your changes first.
7 years 9 months ago #8567

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

  • Posts: 66
  • Thank you received: 2

Replied by Paolo on topic Pulsar 2 (LX200-like) driver

I attach here the very last Pulsar2 files. I did not commit my modifications on the main distribution yet. Some cleaning of the code is due at a certain point. I also need to override the pulse guiding routines.
7 years 9 months ago #8570
Attachments:

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

  • Posts: 66
  • Thank you received: 2

Replied by Paolo on topic Pulsar 2 (LX200-like) driver

ok I downloaded the github version, compiled and installed, changing the pulsar 2 driver version to mine. Now it seems to connect and work!
7 years 9 months ago #8575

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

Please create Pull Request to have your changes merged into the master branch
7 years 9 months ago #8582

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

Time to create page: 0.803 seconds