From 14713f2339f6dcb9d735b9751f241fe3390558e9 Mon Sep 17 00:00:00 2001
From: Laurent Lalanne
Date: Thu, 26 Feb 2015 15:40:14 +0100
Subject: [PATCH 1/3] OP-1752 Add substatus alarm and tell user whats wrong
with Config alarm : Flightmode or OneShot config
---
.../diagrams/default/system-health.svg | 150 ++++++++++++------
.../html/SystemConfiguration-FlightMode.html | 18 +++
...nfiguration-UnsupportedConfig_OneShot.html | 17 ++
.../html/fr/SystemConfiguration-Critical.html | 2 +-
.../fr/SystemConfiguration-FlightMode.html | 18 +++
...nfiguration-UnsupportedConfig_OneShot.html | 17 ++
.../src/plugins/systemhealth/systemhealth.qrc | 4 +
7 files changed, 173 insertions(+), 53 deletions(-)
create mode 100644 ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-FlightMode.html
create mode 100644 ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-UnsupportedConfig_OneShot.html
create mode 100644 ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-FlightMode.html
create mode 100644 ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-UnsupportedConfig_OneShot.html
diff --git a/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg b/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg
index ec21f2821..787cf6939 100644
--- a/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg
+++ b/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg
@@ -14,7 +14,7 @@
height="79.57505"
id="svg3604"
version="1.1"
- inkscape:version="0.48.4 r9939"
+ inkscape:version="0.48.5 r10040"
sodipodi:docname="system-health.svg"
inkscape:export-filename="C:\NoBackup\OpenPilot\mainboard-health.png"
inkscape:export-xdpi="269.53"
@@ -27,10 +27,10 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
- inkscape:zoom="7.4934872"
- inkscape:cx="56.515743"
- inkscape:cy="39.787525"
- inkscape:current-layer="background"
+ inkscape:zoom="6.5977991"
+ inkscape:cx="55.083588"
+ inkscape:cy="24.071773"
+ inkscape:current-layer="foreground"
id="namedview3608"
showgrid="true"
inkscape:window-width="1280"
@@ -40,8 +40,12 @@
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true"
- inkscape:snap-global="false"
- units="mm">
+ inkscape:snap-global="true"
+ units="mm"
+ inkscape:snap-bbox="true"
+ inkscape:snap-bbox-midpoints="true"
+ inkscape:snap-nodes="false"
+ inkscape:snap-grids="false">
image/svg+xml
-
+
@@ -696,7 +700,8 @@
transform="translate(-497.66563,-344.28037)"
id="background"
inkscape:groupmode="layer"
- inkscape:label="Background">
+ inkscape:label="Background"
+ sodipodi:insensitive="true">
-
-
SYSTEM HEALTH
+
+
+
+
+
+
+
+ style="display:none"
+ sodipodi:insensitive="true">
+ style="display:none"
+ sodipodi:insensitive="true">
+ style="display:none"
+ sodipodi:insensitive="true">
+ style="display:none"
+ sodipodi:insensitive="true">
+ style="display:none"
+ sodipodi:insensitive="true">
+ style="display:none"
+ sodipodi:insensitive="true">
+ style="display:none"
+ sodipodi:insensitive="true">
@@ -2439,7 +2473,8 @@
style="display:inline"
inkscape:label="Foreground"
id="foreground"
- inkscape:groupmode="layer">
+ inkscape:groupmode="layer"
+ sodipodi:insensitive="true">
@@ -2903,6 +2938,17 @@
width="13.522519"
id="rect4796-2-7-4-0"
style="fill:none;stroke:#ffffff;stroke-width:0.70866144;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;display:inline" />
+ ?
@@ -2981,12 +3027,12 @@
style="display:inline">
diff --git a/ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-FlightMode.html b/ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-FlightMode.html
new file mode 100644
index 000000000..da6b05179
--- /dev/null
+++ b/ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-FlightMode.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+ System Configuration : FlightMode
+
+ There is a problem with flightmode configuration :
+
+ - One Gps assisted mode is present and you are using a CC/CC3D.
+ - One Gps assisted mode is present and you don't use "GPS Navigation (INS13)" and GPS configured.
+ - One stabilised mode use a wrong thrust mode, like CruizeControl with Rate on Pitch/Roll.
+
+
+
+
diff --git a/ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-UnsupportedConfig_OneShot.html b/ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-UnsupportedConfig_OneShot.html
new file mode 100644
index 000000000..247a7458b
--- /dev/null
+++ b/ground/openpilotgcs/src/plugins/systemhealth/html/SystemConfiguration-UnsupportedConfig_OneShot.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+ System Configuration : Unsupported Config OneShot
+
+ You have selected an unsupported config for PWMSync or OneShot :
+
+ - Double check if RC Input used is compatible with this mode,
+ - Double check your Output configuration.
+
+
+
+
diff --git a/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-Critical.html b/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-Critical.html
index b4710e4dd..26b61d210 100644
--- a/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-Critical.html
+++ b/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-Critical.html
@@ -10,7 +10,7 @@
Une des conditions suivantes semble présente :
-
-
Vous avez réglé un mode GPS (PosHold, RTB) l'interrupteur de mode de vol, et vous avez sélectionné "Basic (Complementary)" comme algorithme d'estimation de l'attitude.
+ Vous avez réglé un mode GPS (PosHold, RTB) sur un mode de vol, et vous avez sélectionné "Basic (Complementary)" comme algorithme d'estimation de l'attitude.
Sélectionnez "GPS Navigation (INS13)" dans l'onglet Config -> Attitude -> Paramètres -> Algorithme d'Estimation de l'Attitude.
diff --git a/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-FlightMode.html b/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-FlightMode.html
new file mode 100644
index 000000000..6c6f04671
--- /dev/null
+++ b/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-FlightMode.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+ Configuration Système : FlightMode
+
+ Il y a un problème avec la configuration des modes de vol :
+
+ - Un mode asisté GPS est présent et vous utilisez une carte CC/CC3D.
+ - Un mode assisté GPS est présent mais vous n'avez pas choisi "GPS Navigation (INS13)" et configuré un GPS.
+ - Un mode de stabilisation utilise un mode de poussée incompatible, comme CruizeControl avec Rate en Pitch/Roll.
+
+
+
+
diff --git a/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-UnsupportedConfig_OneShot.html b/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-UnsupportedConfig_OneShot.html
new file mode 100644
index 000000000..9baf506b5
--- /dev/null
+++ b/ground/openpilotgcs/src/plugins/systemhealth/html/fr/SystemConfiguration-UnsupportedConfig_OneShot.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+ Configuration Système: Mauvaise Config OneShot
+
+ Vous avez sélectionné une configuration incompatible avec PWMSync ou OneShot :
+
+ - Vérifiez si votre configuration d'entrée Rc est compatible avec ces modes,
+ - Vérifiez votre configuration des sorties.
+
+
+
+
diff --git a/ground/openpilotgcs/src/plugins/systemhealth/systemhealth.qrc b/ground/openpilotgcs/src/plugins/systemhealth/systemhealth.qrc
index c9f1723a0..b06912544 100644
--- a/ground/openpilotgcs/src/plugins/systemhealth/systemhealth.qrc
+++ b/ground/openpilotgcs/src/plugins/systemhealth/systemhealth.qrc
@@ -31,6 +31,8 @@
html/Magnetometer-Critical.html
html/Magnetometer-Warning.html
html/Stabilization-Critical.html
+ html/SystemConfiguration-UnsupportedConfig_OneShot.html
+ html/SystemConfiguration-FlightMode.html
html/fr/Actuator-Critical.html
@@ -64,6 +66,8 @@
html/fr/Magnetometer-Warning.html
html/fr/Magnetometer-Critical.html
html/fr/Stabilization-Critical.html
+ html/fr/SystemConfiguration-UnsupportedConfig_OneShot.html
+ html/fr/SystemConfiguration-FlightMode.html
From d26af21ee18fe419e94cc721c87a898d7051873c Mon Sep 17 00:00:00 2001
From: Laurent Lalanne
Date: Thu, 26 Feb 2015 15:59:57 +0100
Subject: [PATCH 2/3] OP-1752 Add reboot-required substatus alarm
---
.../diagrams/default/system-health.svg | 18 ++++++++++++++++--
.../html/BootFault-RebootRequired.html | 13 +++++++++++++
.../html/fr/BootFault-RebootRequired.html | 13 +++++++++++++
.../src/plugins/systemhealth/systemhealth.qrc | 2 ++
4 files changed, 44 insertions(+), 2 deletions(-)
create mode 100644 ground/openpilotgcs/src/plugins/systemhealth/html/BootFault-RebootRequired.html
create mode 100644 ground/openpilotgcs/src/plugins/systemhealth/html/fr/BootFault-RebootRequired.html
diff --git a/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg b/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg
index 787cf6939..42fdf22ac 100644
--- a/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg
+++ b/ground/openpilotgcs/share/openpilotgcs/diagrams/default/system-health.svg
@@ -30,7 +30,7 @@
inkscape:zoom="6.5977991"
inkscape:cx="55.083588"
inkscape:cy="24.071773"
- inkscape:current-layer="foreground"
+ inkscape:current-layer="layer45"
id="namedview3608"
showgrid="true"
inkscape:window-width="1280"
@@ -1671,11 +1671,25 @@
inkscape:label="#rect4550"
rx="1.2054718" />
+
+
+
+ style="display:inline">
+
+
+
+
+
+
+ System Alarm
+
+ Reboot is required !!!
+
+
+