From 62875fbdc466c3458c1f06d05aed5df7893a2cf7 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 2 Nov 2020 19:00:09 +0100 Subject: [PATCH] Updated depth formula --- plot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plot.c b/plot.c index 264d4a4..fab749c 100644 --- a/plot.c +++ b/plot.c @@ -2113,8 +2113,8 @@ static void cell_draw_marker_info(int x0, int y0) setting.unit = old_unit; int depth = (int)( level * 2.0 * 80.0) + 20; #else - float level = actual_t[markers[0].index] - (actual_t[markers[1].index] + actual_t[markers[2].index])/2.0 ; - int depth = (int)( (15.0 - level) / 9.0 * 50) + 50; + float level = actual_t[markers[0].index] - (actual_t[markers[1].index] + actual_t[markers[2].index])/2.0; + int depth =(int) (pow((float)10.0, 2.0 + (-level + 6.0) / 31.0)); #endif plot_printf(buf, sizeof buf, "DEPTH: %3d%%", depth); goto show_computed;