From b47dc8aa2c252c0c266867c0d4d5287bd5362cdc Mon Sep 17 00:00:00 2001 From: cevv-be <106259677+cevv-be@users.noreply.github.com> Date: Sat, 25 Jun 2022 01:02:26 +0200 Subject: [PATCH] Raw dashboard used in our glider simulator (as described in https://github.com/cevv-be/Condor-simu) This is a raw html file, not in a nice format for a contrib. This is more to see if interest. There are two interesting features in the file: - Dynamic configuration of the speed limits using a separate json file and a dropdown in a form - Interactive buttons using "onclick" --- src/contrib/Dash.html | 379 +++++++++++++++++++++++++++++++++++++++++ src/contrib/gliders.js | 124 ++++++++++++++ 2 files changed, 503 insertions(+) create mode 100644 src/contrib/Dash.html create mode 100644 src/contrib/gliders.js diff --git a/src/contrib/Dash.html b/src/contrib/Dash.html new file mode 100644 index 0000000..a409f47 --- /dev/null +++ b/src/contrib/Dash.html @@ -0,0 +1,379 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/contrib/gliders.js b/src/contrib/gliders.js new file mode 100644 index 0000000..fd312be --- /dev/null +++ b/src/contrib/gliders.js @@ -0,0 +1,124 @@ +// typical speed for HSI +var gliders_speeds = { + K13 : { + minspeed:30, + ab1:60, + ab2:200, + av1:60, + aj1:150, + aj2:200, + vne:200, + voa:90, + maxspeed:250 + }, + K8 : { + minspeed:30, + ab1:0, + ab2:0, + av1:63, + aj1:130, + aj2:190, + vne:190, + voa:70, + maxspeed:220 + }, + K21: { + minspeed:30, + ab1:0, + ab2:0, + av1:80, + aj1:180, + aj2:280, + vne:280, + voa:91, + maxspeed:300 + }, + DuoDiscus: { + minspeed:40, + ab1:0, + ab2:0, + av1:90, + aj1:180, + aj2:265, + vne:265, + voa:95, + maxspeed:280 + }, + Antares: { + minspeed:50, + ab1:0, + ab2:0, + av1:95, + aj1:195, + aj2:280, + vne:280, + voa:120, + maxspeed:300 + }, + Blanik: { + minspeed:30, + ab1:60, + ab2:110, + av1:65, + aj1:148, + aj2:255, + vne:255, + voa:110, + maxspeed:270 + }, + Pegase: { + minspeed:30, + ab1:0, + ab2:0, + av1:80, + aj1:170, + aj2:250, + vne:250, + voa:90, + maxspeed:270 + }, + Genesis: { + minspeed:40, + ab1:0, + ab2:0, + av1:75, + aj1:205, + aj2:275, + vne:275, + voa:90, + maxspeed:280 + }, + StdCirrus: { + minspeed:40, + ab1:0, + ab2:0, + av1:70, + aj1:170, + aj2:220, + vne:220, + voa:95, + maxspeed:230 + }, + Diana2: { + minspeed:50, + ab1:95, + ab2:233, + av1:105, + aj1:195, + aj2:275, + vne:275, + voa:95, + maxspeed:300 + }, + DG808: { + minspeed:50, + ab1:85, + ab2:190, + av1:97, + aj1:190, + aj2:270, + vne:270, + voa:105, + maxspeed:270 + } +} \ No newline at end of file