Too long deco after moving points in the planner

Robert C. Helling helling at atdotde.de
Fri Jul 5 14:42:35 PDT 2013


Hi,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Delte-the-temporary-dive-from-the-divelist-after-cal.patch
Type: application/octet-stream
Size: 1852 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130705/4ecb9916/attachment.obj>
-------------- next part --------------


finally I found the origin of the following weird behavior:

In the planner create two waypoints:

30m at 2min
30m at 5min

No deco obligation is created.

Then move the second waypoint to 

30m at 28min

Some deco is created (correct).

Move it back to 

30min at 5min

There is still substantial deco at 3m left (incorrect).

The origin of this behavior was that upon each addition of a waypoint and each move event a new dive was added to the dive list. The previous dives were then taken into account for deco. This patch now deltas the dive from the dive list after every computation of the deco obligation. It would have to be added back once the ok button is pressed (but then struct dive should not be on the stack but on the heap).

Good night
Robert
--                                                                              
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO 
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics  
                      Scientific Coordinator                                   
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik    
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339       
    stupid .sig\n";   http://www.atdotde.de 



More information about the subsurface mailing list