dc_tank_t class final

Tank volume

There are two different ways to specify the volume of a tank. In the metric system, the tank volume is specified as the water capacity, while in the imperial system the tank volume is specified as the air capacity at the surface (1 ATM) when the tank is filled at its working pressure. Libdivecomputer will always convert the tank volume to the metric representation, and indicate the original tank type:

DC_TANKVOLUME_NONE: Tank volume is not available. Both the volume and workpressure will be zero.

DC_TANKVOLUME_METRIC: A metric tank. The workpressure is optional and may be zero.

DC_TANKVOLUME_IMPERIAL: An imperial tank. Both the volume and workpressure are mandatory and always non-zero. The volume has been converted from air capacity to water capacity. To calculate the original air capacity again, multiply with the workpressure and divide by 1 ATM (Vair = Vwater * Pwork / Patm).

Inheritance
Implemented types
Available extensions

Constructors

dc_tank_t()

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
beginpressure double
Begin pressure (bar)
getter/setter pair
endpressure double
End pressure (bar)
getter/setter pair
gasmix int
Gas mix index, or DC_GASMIX_UNKNOWN
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
Tank type
getter/setter pair
usage int
getter/setter pair
volume double
Volume (liter)
getter/setter pair
workpressure double
Work pressure (bar)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited