Expand description
Commonly used items for decompression models and dive planning
Re-exports§
pub use dive_segment::DiveSegment;pub use dive_segment::DiveSegmentError;pub use dive_segment::SegmentType;pub use gas::Gas;pub use gas::GasError;pub use tank::Tank;
Modules§
Constants§
- DEFAULT_
ASCENT_ RATE - A default, placeholder ascent rate (measured in m min^-1). This is the maximum rate recommended by major instruction agencies.
- DEFAULT_
DESCENT_ RATE - A default, placeholder descent rate (measured in m min^-1).
- DENSITY_
FRESHWATER - Density of fresh water (measured in kg m^-3).
- DENSITY_
SALTWATER - Average density of salt water (measured in kg m^-3).
Functions§
- bar_mtr
- Helper function to convert pressure to the equivalent depth of water that would induce it.
- mtr_bar
- Helper function to convert a depth of water to the pressure it will induce.
- time_
taken - Helper function to calculate the time taken to change depths, given a rate.