[][src]Module capra_core::common

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

dive_segment
gas
otu
tank

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.