MCPcopy
hub / github.com/cpaczek/skylight / zenithHold

Function zenithHold

tracker/src/pointing/planner.ts:106–113  ·  view source on GitHub ↗
(
  plan: PassPlan | null,
  currentElDeg: number,
)

Source from the content-addressed store, hash-verified

104 * top of the frame. Returns null when normal continuous tracking should run.
105 */
106export function zenithHold(
107 plan: PassPlan | null,
108 currentElDeg: number,
109): { azDeg: number; elDeg: number } | null {
110 if (!plan?.zenithPass) return null;
111 if (currentElDeg < ZENITH_REGIME_EL) return null;
112 return { azDeg: plan.outboundAzDeg, elDeg: ZENITH_HOLD_TILT };
113}

Callers 2

planner.test.tsFile · 0.85
tickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected