Planner: bring sanity to the SAC rate handling

The old implementation was... let's call it creative.
This tries to actually get things right instead of using magic.
Don't pretend that double values are ints.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-08-19 11:13:55 -05:00
parent 150676ce3d
commit 6ed189f32c
5 changed files with 61 additions and 48 deletions

View file

@ -70,8 +70,8 @@ slots:
void triggerGFLow();
void setSurfacePressure(int pressure);
int getSurfacePressure();
void setBottomSac(int sac);
void setDecoSac(int sac);
void setBottomSac(double sac);
void setDecoSac(double sac);
void setStartTime(const QTime &t);
void setStartDate(const QDate &date);
void setLastStop6m(bool value);
@ -160,8 +160,8 @@ public
slots:
void settingsChanged();
void atmPressureChanged(const QString &pressure);
void bottomSacChanged(const int bottomSac);
void decoSacChanged(const int decosac);
void bottomSacChanged(const double bottomSac);
void decoSacChanged(const double decosac);
void printDecoPlan();
void setAscRate75(int rate);
void setAscRate50(int rate);