diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-02-13 22:23:09 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-13 23:02:05 -0800 |
commit | fd703f3ca0cd36cc93ec81560b926f98b3da8093 (patch) | |
tree | 8883e1bbb2ff878dc646bbdd1203b5e76cc6c5ce /planner.c | |
parent | 0cde0eff103ec8742656c4cb167a0e6245293697 (diff) | |
download | subsurface-fd703f3ca0cd36cc93ec81560b926f98b3da8093.tar.gz |
Support deeper stops and longer dive notes in planner
Since we now support dives all the way down to 400m we should also support
deeper stops. And of course this can create insanely long dive plans, so
make sure there is plenty of space for those.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -15,7 +15,10 @@ int decostoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 18000, 21000, 24000, 27000, 30000, 33000, 36000, 39000, 42000, 45000, 48000, 51000, 54000, 57000, 60000, 63000, 66000, 69000, 72000, 75000, 78000, 81000, 84000, 87000, - 90000}; + 90000, 100000, 110000, 120000, 130000, 140000, 150000, 160000, 170000, + 180000, 190000, 200000, 220000, 240000, 260000, 280000, 300000, + 320000, 340000, 360000, 380000 +}; double plangflow, plangfhigh; char *disclaimer; GtkWidget *planner, *planner_error_bar, *error_label; @@ -510,7 +513,7 @@ static int *sort_stops(int *dstops, int dnr, struct gaschanges *gstops, int gnr) static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive) { - char buffer[2000]; + char buffer[20000]; int consumption[MAX_CYLINDERS] = { 0, }; int len, gasidx, lastdepth = 0, lasttime = 0; struct divedatapoint *dp = diveplan->dp; |