Planner: automate calculation of best mix for max depth

Add option to calculate the best mix portion of O2 and He for the dive's max
depth if the user enters * in the MOD and MND cylinder fields. Gas portions
are automatically recalculated if the max depth of the dive changes.

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Rick Walsh 2016-07-06 22:40:35 +10:00 committed by Dirk Hohndel
parent ae9e147314
commit f08b0e0e3e
5 changed files with 88 additions and 13 deletions

View file

@ -38,6 +38,7 @@ public:
void updateDive();
void copyFromDive(struct dive *d);
void updateDecoDepths(pressure_t olddecopo2);
bool updateBestMixes();
cylinder_t *cylinderAt(const QModelIndex &index);
bool changed;