[All] Code refactoring

- keys beep and haptic refactoring (not anymore audio events)
- trims move/mid/min/max refactoring (trim end splitted to trim min / trim max)
- S6R new alarms
- S6R servos/rx status displayed as a text (not an integer which has no sense)
- Timer countdown configuration
- The splash was not displayed (but the timeout was there) after the first calibration
This commit is contained in:
Bertrand Songis
2016-05-13 14:41:48 +02:00
parent 24abad55ca
commit 7908eaa406
82 changed files with 749 additions and 598 deletions
+4
View File
@@ -47,6 +47,9 @@ for i, s in enumerate(["point zero", "point one", "point two", "point three",
systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 165 + i)))
for s, f, a in [(u"trim center", "midtrim", 495),
(u"maximum trim reached", "endtrim", NO_ALTERNATE),
(u"timer 1 elapsed", "timovr1", NO_ALTERNATE),
(u"timer 2 elapsed", "timovr2", NO_ALTERNATE),
(u"timer 3 elapsed", "timovr3", NO_ALTERNATE),
(u"transmitter battery low", "lowbatt", 485),
(u"inactivity alarm", "inactiv", 486),
(u"throttle warning", "thralert", 481),
@@ -62,6 +65,7 @@ for s, f, a in [(u"trim center", "midtrim", 495),
(u"trainer signal recovered", "trainok", NO_ALTERNATE),
(u"sensor lost", "sensorko", NO_ALTERNATE),
(u"servo overload", "servoko", NO_ALTERNATE),
(u"power overload", "rxko", NO_ALTERNATE),
]:
systemSounds.append((s, filename(f, a)))
for i, (s, f) in enumerate([(u"gear!, up!", "gearup"),
+4
View File
@@ -21,6 +21,9 @@ for i, s in enumerate(["virgule 0", "virgule 1", "virgule 2", "virgule 3", "virg
systemSounds.append((s, filename(PROMPT_SYSTEM_BASE + 180 + i)))
for s, f, a in [(u"Trim centré", "midtrim", 495),
(u"Trim maximum atteint", "endtrim", NO_ALTERNATE),
(u"Chrono 1 à 0", "timovr1", NO_ALTERNATE),
(u"Chrono 2 à 0", "timovr2", NO_ALTERNATE),
(u"Chrono 3 à 0", "timovr3", NO_ALTERNATE),
(u"Batterie radio faible !", "lowbatt", 485),
(u"Radio inactive !", "inactiv", 486),
(u"Alerte manche des gaz", "thralert", 481),
@@ -36,6 +39,7 @@ for s, f, a in [(u"Trim centré", "midtrim", 495),
(u"Signal écolage retrouvé", "trainok", NO_ALTERNATE),
(u"Sonde de télémétrie perdue", "sensorko", NO_ALTERNATE),
(u"Servo en surcharge", "servoko", NO_ALTERNATE),
(u"Surcharge réception", "rxko", NO_ALTERNATE),
]:
systemSounds.append((s, filename(f, a)))
for i, (s, f) in enumerate([(u"altitude", "altitude"),