Combine 2 dives object in a sequence. To do so, it checks if the desaturation models are coherent and if the second dive is possible according to residual azote and interval time.

ndive(dive1, dive2, inter = 16, verbose = FALSE)

Arguments

dive1

the first dive, must be a dive object

dive2

the second dive, must be a dive object. This one will be modified with a majoration obtained from dive1 and the interval.

inter

16 by default, interval in minute between the end of the first dive and the beginning of the second.

verbose

allow cat return in consol for debug purposes. Show which case of sequence is used.

Value

ndive, a ndive class object.

Details

See tablecheck for limit values of depth and time of a dive.

Author

Jaunatre Maxime <maxime.jaunatre@yahoo.fr>

Examples

dive1 = dive(depth = 39, time = 22, secu = TRUE, ascent_speed = 10) dive2 = dive(depth = 20, time = 40, secu = TRUE, ascent_speed = 10) divet = ndive(dive1, dive2, inter = 30)
#> Warning: Second dive impossible due to majoration of time