Skip to content

dive-math / deco / PlanWarning

Type Alias: PlanWarning ​

PlanWarning = { code: "hypoxic" | "ppo2-high" | "density-recommended" | "density-hard" | "ceiling-violated"; segmentIndex: number; } | { code: "no-breathable-gas" | "no-break-gas"; depthM: number; } | { code: "cns-single" | "cns-working" | "cns-resting" | "cns-daily" | "otu-daily"; } | { code: "deco-too-long"; }

Defined in: deco/report.ts:29

Something unsafe about a valid plan. segmentIndex points into DivePlan.segments.

Union Members ​

Type Literal ​

{ code: "hypoxic" | "ppo2-high" | "density-recommended" | "density-hard" | "ceiling-violated"; segmentIndex: number; }


Type Literal ​

{ code: "no-breathable-gas" | "no-break-gas"; depthM: number; }


Type Literal ​

{ code: "cns-single" | "cns-working" | "cns-resting" | "cns-daily" | "otu-daily"; }

Oxygen limits exceeded: cns-single (NOAA), cns-working / cns-resting (Hoyt 2025 phase budgets), cns-daily (24 h limits with dayExposure), otu-daily (REPEX day 1, 850 OTU).


Type Literal ​

{ code: "deco-too-long"; }

Stops exceed MAX_DECO_MINUTES: the plan stops at the depth where it was truncated; runtimeMinutes and gasUse cover only the planned part.

Reference only — verify every fill and dive plan independently.