Ready-made control mirrors for mount/focuser/camera

Mirroring a device property shows the hand-rolled, two-way mirror mechanism for one property. For three well-known device roles, IndiModule offers a ready-made bundle that mirrors a whole known set of standard INDI vectors at once — no property declaration needed on the module’s own side, they’re created on the fly as the matching INDI properties actually appear.

giveMeMountControls(): direction, park/unpark, home, slew rate, abort

// src/modules/navigator/navigator.cpp / src/modules/parkmanager/parkmanager.cpp
giveMeMountControls();

Both call it directly — it does not need giveMeADevice("mount", ...) first, nor any particular role declared.

A module running its own automated mount routine disables the mirrored controls for its duration, so a manual click from the frontend panel can’t fight an in-flight slew — then re-enables them on every exit path (success, failure, abort alike). Navigator’s centering loop is the real example:

// src/modules/navigator/navigator.cpp, "gototarget" handler
disableMountControls();
convertSelection();
...
slewToSelection();
// src/modules/navigator/navigator.cpp, "abortnavigator" handler
releaseSolver();
...
enableMountControls();

enableMountControls() reappears at every one of the routine’s own completion points (solve success, solve failure, device error, centering done) — not just the explicit abort shown above.

giveMeAFocuser(): direction, position, backlash, speed, reverse

// src/modules/focus/focus.cpp, src/modules/inspector/inspector.cpp
giveMeAFocuser();

Independent of defineMeAsFocuser() (Ready-made families) — Focus itself calls both, but Inspector calls giveMeAFocuser() alone, with no focuser role declared at all, purely to let its own collimation-assistant UI drive the focuser directly.

Same disable/enable-around-the-routine pattern as the mount, this time guarding Focus’s own autofocus sweep:

// src/modules/focus/focus.cpp, startCoarse()
// Issue #284 - a manual click on the focuser controls panel while
// this routine is in flight would fight its own focuser moves.
// startLoop() deliberately does NOT do this - manually nudging the
// focuser while a loop runs is the whole point of that mode.
disableFocusControls();

enableFocusControls() is called back on every path out of the sweep (success, a read failure caught early, abort) — including inside startLoop()’s own abort handling, even though startLoop() itself never disables them in the first place (the comment above explains why: nudging the focuser by hand during a loop is the whole point of that mode).

giveMeCameraControls(): temperature/cooling, binning, frame ROI, vendor controls

// src/modules/inspector/inspector.cpp
giveMeADevice("camera", "Camera", INDI::BaseDevice::CCD_INTERFACE);
giveMeCameraControls();
giveMeAFocuser();

Inspector is the only core module exercising this one today, declaring its own camera device first (unlike the mount/focuser mirrors, this one does not call giveMeADevice() for you).

disableCameraControls()/enableCameraControls() have no real usage yet

They exist, same signature and intent as the mount/focuser pair above, but no core module calls either today — Inspector never runs an automated routine that would need to lock its camera controls out from under a manual click.