From 76c0f3f350a86731de27f3a9f55f52948cec27ad Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Mon, 5 Dec 2016 15:22:05 +0100 Subject: [PATCH] LP-444 Update SystemHealth for I2C alarms and more. --- flight/modules/System/systemmod.c | 3 --- .../systemhealth/html/Attitude-Critical.html | 5 +++-- .../systemhealth/html/Attitude-Error.html | 3 ++- .../systemhealth/html/Attitude-Warning.html | 16 ++++++++++++++++ .../plugins/systemhealth/html/GPS-Error.html | 6 +++--- .../systemhealth/html/I2C-Critical.html | 13 +++++++++++++ .../plugins/systemhealth/html/I2C-Error.html | 18 ++++++++++++++++++ .../systemhealth/html/Sensors-Critical.html | 7 +++---- .../html/Stabilization-Critical.html | 6 ++++-- .../systemhealth/html/Stabilization-Error.html | 17 +++++++++++++++++ .../html/Stabilization-Warning.html | 8 ++++++-- .../html/fr/Attitude-Critical.html | 5 +++-- .../systemhealth/html/fr/Attitude-Error.html | 1 + .../systemhealth/html/fr/Attitude-Warning.html | 16 ++++++++++++++++ .../systemhealth/html/fr/GPS-Error.html | 6 +++--- .../systemhealth/html/fr/GPS-Warning.html | 2 +- .../systemhealth/html/fr/I2C-Critical.html | 13 +++++++++++++ .../systemhealth/html/fr/I2C-Error.html | 18 ++++++++++++++++++ .../systemhealth/html/fr/Sensors-Critical.html | 4 ++-- .../html/fr/Stabilization-Critical.html | 6 ++++-- .../html/fr/Stabilization-Error.html | 17 +++++++++++++++++ .../html/fr/Stabilization-Warning.html | 8 ++++++-- .../src/plugins/systemhealth/systemhealth.qrc | 10 ++++++++++ 23 files changed, 179 insertions(+), 29 deletions(-) create mode 100644 ground/gcs/src/plugins/systemhealth/html/Attitude-Warning.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/I2C-Critical.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/I2C-Error.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/Stabilization-Error.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Warning.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/fr/I2C-Critical.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/fr/I2C-Error.html create mode 100644 ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Error.html diff --git a/flight/modules/System/systemmod.c b/flight/modules/System/systemmod.c index 4a629f301..2cf86e751 100644 --- a/flight/modules/System/systemmod.c +++ b/flight/modules/System/systemmod.c @@ -124,11 +124,8 @@ static void updateWDGstats(); #endif #ifdef PIOS_INCLUDE_I2C - #define I2C_ERROR_ACTIVITY_TIMEOUT_SECONDS 2 - #define I2C_ERROR_ACTIVITY_TIMEOUT (I2C_ERROR_ACTIVITY_TIMEOUT_SECONDS * 1000 / SYSTEM_UPDATE_PERIOD_MS) - static uint8_t i2c_error_activity[PIOS_I2C_ERROR_COUNT_NUMELEM]; #endif diff --git a/ground/gcs/src/plugins/systemhealth/html/Attitude-Critical.html b/ground/gcs/src/plugins/systemhealth/html/Attitude-Critical.html index b7676c6dd..3a763a567 100644 --- a/ground/gcs/src/plugins/systemhealth/html/Attitude-Critical.html +++ b/ground/gcs/src/plugins/systemhealth/html/Attitude-Critical.html @@ -9,8 +9,9 @@

One of the following conditions may be present:

diff --git a/ground/gcs/src/plugins/systemhealth/html/Attitude-Error.html b/ground/gcs/src/plugins/systemhealth/html/Attitude-Error.html index d1cbb4982..7ebc6ce75 100644 --- a/ground/gcs/src/plugins/systemhealth/html/Attitude-Error.html +++ b/ground/gcs/src/plugins/systemhealth/html/Attitude-Error.html @@ -9,8 +9,9 @@

One of the following conditions may be present:

diff --git a/ground/gcs/src/plugins/systemhealth/html/Attitude-Warning.html b/ground/gcs/src/plugins/systemhealth/html/Attitude-Warning.html new file mode 100644 index 000000000..61ab7f9a3 --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/Attitude-Warning.html @@ -0,0 +1,16 @@ + + + + + + + +

Attitude : Warning

+

+ One of the following conditions may be present: +

+

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/GPS-Error.html b/ground/gcs/src/plugins/systemhealth/html/GPS-Error.html index 52769efc4..0d6fde2c8 100644 --- a/ground/gcs/src/plugins/systemhealth/html/GPS-Error.html +++ b/ground/gcs/src/plugins/systemhealth/html/GPS-Error.html @@ -9,9 +9,9 @@

The GPS has timed out, one of the following conditions may be present:

diff --git a/ground/gcs/src/plugins/systemhealth/html/I2C-Critical.html b/ground/gcs/src/plugins/systemhealth/html/I2C-Critical.html new file mode 100644 index 000000000..976a4646b --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/I2C-Critical.html @@ -0,0 +1,13 @@ + + + + + + + +

I2C: Critical

+

+ I2C port is working but there are acknowledgement errors. +

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/I2C-Error.html b/ground/gcs/src/plugins/systemhealth/html/I2C-Error.html new file mode 100644 index 000000000..39098173b --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/I2C-Error.html @@ -0,0 +1,18 @@ + + + + + + + +

I2C: Error

+

+ The I2C has timed out, one of the following conditions may be present: +

+

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/Sensors-Critical.html b/ground/gcs/src/plugins/systemhealth/html/Sensors-Critical.html index 9c0fb41cb..55e37f6d0 100644 --- a/ground/gcs/src/plugins/systemhealth/html/Sensors-Critical.html +++ b/ground/gcs/src/plugins/systemhealth/html/Sensors-Critical.html @@ -9,10 +9,9 @@

One of the following conditions may be present:

-

- \ No newline at end of file + diff --git a/ground/gcs/src/plugins/systemhealth/html/Stabilization-Critical.html b/ground/gcs/src/plugins/systemhealth/html/Stabilization-Critical.html index af674c0cb..468e40fc7 100644 --- a/ground/gcs/src/plugins/systemhealth/html/Stabilization-Critical.html +++ b/ground/gcs/src/plugins/systemhealth/html/Stabilization-Critical.html @@ -9,8 +9,10 @@

One of the following conditions may be present:

diff --git a/ground/gcs/src/plugins/systemhealth/html/Stabilization-Error.html b/ground/gcs/src/plugins/systemhealth/html/Stabilization-Error.html new file mode 100644 index 000000000..896f0499e --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/Stabilization-Error.html @@ -0,0 +1,17 @@ + + + + + + + +

Stabilization: Error

+

+ One of the following conditions may be present: +

+

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/Stabilization-Warning.html b/ground/gcs/src/plugins/systemhealth/html/Stabilization-Warning.html index 8120f7503..daec7c102 100644 --- a/ground/gcs/src/plugins/systemhealth/html/Stabilization-Warning.html +++ b/ground/gcs/src/plugins/systemhealth/html/Stabilization-Warning.html @@ -7,7 +7,11 @@

Stabilization: Warning

- Timed out waiting for an attitude update. + One of the following conditions may be present: +

- \ No newline at end of file + diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Critical.html b/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Critical.html index 77a583f99..c120c63a4 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Critical.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Critical.html @@ -9,8 +9,9 @@

Une des conditions suivantes semble présente :

diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Error.html b/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Error.html index 476756b2e..f85acf6cf 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Error.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Error.html @@ -9,6 +9,7 @@

Une des conditions suivantes semble présente :

diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Warning.html b/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Warning.html new file mode 100644 index 000000000..12c8360ec --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Attitude-Warning.html @@ -0,0 +1,16 @@ + + + + + + + +

Attitude : Avertissement

+

+ Une des conditions suivantes semble présente : +

+

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Error.html b/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Error.html index c70db0dc7..8aa4e9ae3 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Error.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Error.html @@ -9,9 +9,9 @@

Le GPS a expiré pour une des raisons suivantes :

diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Warning.html b/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Warning.html index fcb656d47..77de2574a 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Warning.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/GPS-Warning.html @@ -5,7 +5,7 @@ -

GPS: Avertissement

+

GPS : Avertissement

Le GPS a un fix et la navigation peut être utilisée. Cependant, la précision de la position est très faible (l'indication est < 7 satellites)

diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/I2C-Critical.html b/ground/gcs/src/plugins/systemhealth/html/fr/I2C-Critical.html new file mode 100644 index 000000000..1b4148026 --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/fr/I2C-Critical.html @@ -0,0 +1,13 @@ + + + + + + + +

I2C : Critique

+

+ Le port I2C fonctionne mais il y a des erreurs d'ack. +

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/I2C-Error.html b/ground/gcs/src/plugins/systemhealth/html/fr/I2C-Error.html new file mode 100644 index 000000000..bfb738921 --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/fr/I2C-Error.html @@ -0,0 +1,18 @@ + + + + + + + +

I2C : Erreur

+

+ Le port I2C a expiré pour une des raisons suivantes : +

+

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Sensors-Critical.html b/ground/gcs/src/plugins/systemhealth/html/fr/Sensors-Critical.html index e2c70026e..33922ec1f 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/Sensors-Critical.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Sensors-Critical.html @@ -9,8 +9,8 @@

Une des conditions suivantes est peut-être présente :

diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Critical.html b/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Critical.html index fc7198c17..afae223ee 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Critical.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Critical.html @@ -9,8 +9,10 @@

Une des conditions suivantes semble présente :

diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Error.html b/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Error.html new file mode 100644 index 000000000..be2cdfade --- /dev/null +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Error.html @@ -0,0 +1,17 @@ + + + + + + + +

Stabilisation : Erreur

+

+ Une des conditions suivantes semble présente : +

+

+ + diff --git a/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Warning.html b/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Warning.html index 950e4fc33..dd1c446ba 100644 --- a/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Warning.html +++ b/ground/gcs/src/plugins/systemhealth/html/fr/Stabilization-Warning.html @@ -5,9 +5,13 @@ -

Stabilisation: Avertissement

+

Stabilisation : Avertissement

- Délai d'attente d'une mise à jour de l'attitude dépassé. + Une des conditions suivantes semble présente : +

diff --git a/ground/gcs/src/plugins/systemhealth/systemhealth.qrc b/ground/gcs/src/plugins/systemhealth/systemhealth.qrc index 64f21cdd2..7b275f850 100644 --- a/ground/gcs/src/plugins/systemhealth/systemhealth.qrc +++ b/ground/gcs/src/plugins/systemhealth/systemhealth.qrc @@ -11,6 +11,7 @@ html/EventSystem-Warning.html html/FlightTime-Critical.html html/AlarmOK.html + html/Attitude-Warning.html html/Attitude-Critical.html html/Attitude-Error.html html/Battery-Critical.html @@ -20,10 +21,14 @@ html/GPS-Error.html html/GPS-Warning.html html/Guidance-Warning.html + html/I2C-Critical.html + html/I2C-Error.html html/OutOfMemory-Critical.html html/OutOfMemory-Warning.html html/Sensors-Critical.html html/Stabilization-Warning.html + html/Stabilization-Critical.html + html/Stabilization-Error.html html/StackOverflow-Critical.html html/Telemetry-Error.html html/SystemConfiguration-Critical.html @@ -48,6 +53,7 @@ html/fr/EventSystem-Warning.html html/fr/FlightTime-Critical.html html/fr/AlarmOK.html + html/fr/Attitude-Warning.html html/fr/Attitude-Critical.html html/fr/Attitude-Error.html html/fr/Battery-Critical.html @@ -57,10 +63,14 @@ html/fr/GPS-Error.html html/fr/GPS-Warning.html html/fr/Guidance-Warning.html + html/fr/I2C-Critical.html + html/fr/I2C-Error.html html/fr/OutOfMemory-Critical.html html/fr/OutOfMemory-Warning.html html/fr/Sensors-Critical.html html/fr/Stabilization-Warning.html + html/fr/Stabilization-Critical.html + html/fr/Stabilization-Error.html html/fr/StackOverflow-Critical.html html/fr/Telemetry-Error.html html/fr/SystemConfiguration-Critical.html