Ticket #7 (closed defect: fixed)
Switching to/from msw/fsw with a dive planned leaves the last stop and step wrong.
Reported by: | eskil | Owned by: | eskil |
---|---|---|---|
Priority: | critical | Milestone: | Version 0.9.2 |
Component: | Plan Settings | Version: | 0.9 |
Severity: | Must Have | Keywords: | |
Cc: | Fixed in Version: | 0.9.2 |
Description
If you have a dive plan set, and you change the units being used, the conversion leaves the number is a slightly off state due to rounding.
Ie. a plan for 160fsw with last stop at 20fsw and interval of 10fsw. If changed to msw will yield a dive to 51msw but with a last stop of 6.14msw and a step interval of 3.07msw.
Hence a decogas such as 100% at 20fsw becomes 100% at 6msw, but wont be picked at the last stop since 6msw < 6.14msw...
Luckily this generates a plan that is obviously suspicious since all deco gas switches are off by 1 stop. And if you start a clean plan with the unit system chosen, everything will be right.
And of course ditto if switching from msw to fsw with a plan already set.