Skip to content

Tests for the PHD2 guider link

Eric Dejouhanet requested to merge edejouhanet/kstars:improve__test_phd2 into master

This MR provides tests for the PHD2 guider link.

Test is bypassed if phd2 is unavailable, else instantiate a phd2 process using a defined configuration matching the default Ekos Simulators. It then runs a series of very basic connection and calibration tests.

The version of PHD2 the tests are built against is 2.6.8.

It appears that:

  • PHD2 sometimes fails to connect to a living camera or mount. Ekos requires a disconnect/reconnect to restore functionality.
  • PHD2 may sometimes not report calibration failures when the star does not move at all. Ekos' state machine is then stuck.
  • If PHD2 is the first client to connect, device configurations will not be loaded. This makes the mount unusable.
  • If a driver disconnects or restarts, PHD2 will not reconnect by itself, and Ekos is not able to recover.

This MR provides support for improvement of fault tolerance in the PHD2 guider submodule. More specific tests about the two last points may be added to a future MR.

Merge request reports