Instrument Neutral Distributed Interface INDI 2.2.5
PACInterface Class Reference

Provides interface to implement automated polar alignment correction (PAC). More...

#include <indipacinterface.h>

Detailed Description

Provides interface to implement automated polar alignment correction (PAC).

The interface exposes manual step controls via the PAC_MANUAL_ADJUSTMENT number property. A client (e.g. Ekos) can nudge the mount by a signed number of degrees on either axis:

Sign convention for manual adjustments: the step is a move of the polar axis, as seen facing the pole.

  • Azimuth (MANUAL_AZ_STEP): positive value → right (East in the northern hemisphere), negative → left
  • Altitude (MANUAL_ALT_STEP): positive value → up (increase altitude), negative → down

To correct a polar alignment error, a client sends the negative of the measured error: an axis that is east of (right of) the pole moves West, an axis that is too high moves down. Ekos does this since KStars 3.8.6, matching the vendor software of the Avalon UPAS and the MLAstro RPA.

A driver may complete a move at once and return IPS_OK instead of IPS_BUSY, e.g. when the move is below its minimum. Clients must accept IPS_OK without a preceding IPS_BUSY.

The ManualAdjustmentNP property state reflects the overall motion status:

  • IPS_BUSY – either axis is still moving
  • IPS_ALERT – either axis returned an error
  • IPS_OK – both axes finished successfully

Optional capability-gated properties:

  • PAC_HAS_POSITION : PositionNP reports the current AZ/ALT offset in degrees (read-only)
  • PAC_HAS_SPEED : SpeedNP controls the motor speed
  • PAC_CAN_REVERSE : AZReverseSP / ALTReverseSP reverse individual axis direction

IMPORTANT: initProperties() must be called before any other function. IMPORTANT: updateProperties() must be called in your driver's updateProperties(). IMPORTANT: processSwitch() must be called in your driver's ISNewSwitch(). IMPORTANT: processNumber() must be called in your driver's ISNewNumber().

Author
Joaquin Rodriguez, Jasem Mutlaq

The documentation for this class was generated from the following file: