Updated depth formula

master
erikkaashoek 5 years ago
parent ba506d5173
commit 62875fbdc4

@ -2114,7 +2114,7 @@ static void cell_draw_marker_info(int x0, int y0)
int depth = (int)( level * 2.0 * 80.0) + 20; int depth = (int)( level * 2.0 * 80.0) + 20;
#else #else
float level = actual_t[markers[0].index] - (actual_t[markers[1].index] + actual_t[markers[2].index])/2.0; 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; int depth =(int) (pow((float)10.0, 2.0 + (-level + 6.0) / 31.0));
#endif #endif
plot_printf(buf, sizeof buf, "DEPTH: %3d%%", depth); plot_printf(buf, sizeof buf, "DEPTH: %3d%%", depth);
goto show_computed; goto show_computed;

Loading…
Cancel
Save

Powered by TurnKey Linux.