dive-math / deco / breakBreathingAt
Function: breakBreathingAt()
breakBreathingAt(
rules,ctx):Breathing|null
Defined in: deco/air-breaks.ts:207
Break breathing at the context depth: OC, the leanest carried gas that is breathable and below the trigger; CCR, the loop at the break setpoint. Null when no OC gas qualifies.
Parameters
rules
ResolvedAirBreaks | undefined
ctx
Returns
Breathing | null
Example
ts
breakBreathingAt(resolveAirBreaks({ oc: {} }), { depthM: 6, normal: { kind: 'oc', gas: gas(1) }, gases: [gas(1), AIR] }) // { kind: 'oc', gas: AIR }