comparison Discovery/Src/simulation.c @ 177:458f16cda15c

Merged in janlmulder/ostc4/max-depth (pull request #3) Bugfix: make max depth move with current depth Approved-by: heinrichsweikamp <bitbucket@heinrichsweikamp.com>
author heinrichsweikamp <bitbucket@heinrichsweikamp.com>
date Tue, 12 Mar 2019 15:04:19 +0000
parents 1719b9d1094b
children 2bb1db22b5f5
comparison
equal deleted inserted replaced
172:c659fda83e44 177:458f16cda15c
614 timeThis = 0; 614 timeThis = 0;
615 if(actualDepthPoint > nextDepthPoint) // only if deco 615 if(actualDepthPoint > nextDepthPoint) // only if deco
616 { 616 {
617 // ascent time 617 // ascent time
618 timeThis = ((float)(actualDepthPoint - nextDepthPoint)) / sim_ascent_rate_meter_per_min_local; 618 timeThis = ((float)(actualDepthPoint - nextDepthPoint)) / sim_ascent_rate_meter_per_min_local;
619 actualDepthPoint = actualDepthPoint; // that is where we are
620 619
621 // deco stop time 620 // deco stop time
622 for(ptrDecoInfo=0;ptrDecoInfo < DECOINFO_STRUCT_MAX_STOPS; ptrDecoInfo++) 621 for(ptrDecoInfo=0;ptrDecoInfo < DECOINFO_STRUCT_MAX_STOPS; ptrDecoInfo++)
623 { 622 {
624 timeThis += decoInfoInput->output_stop_length_seconds[ptrDecoInfo] / 60; 623 timeThis += decoInfoInput->output_stop_length_seconds[ptrDecoInfo] / 60;