Hook up UI elements for ascent rates to planner

That provides some UI elements that were recently introduced with function
of allowing the ascent rates of the planner to be configured by the user.

I tried to make it work both with senisble as well as with imperial units.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-06-25 00:08:36 +02:00 committed by Dirk Hohndel
parent 2ae6f8078a
commit 772727fc7f
6 changed files with 146 additions and 73 deletions

View file

@ -32,7 +32,12 @@ struct preferences default_prefs = {
.display_invalid_dives = false,
.show_sac = false,
.display_unused_tanks = false,
.show_average_depth = true
.show_average_depth = true,
.ascrate75 = 9000 / 60,
.ascrate50 = 6000 / 60,
.ascratestops = 6000 / 60,
.ascratelast6m = 1000 / 60,
.descrate = 18000 / 60
};
int run_survey;