feat: Interactive/progressive preflight checklist (#3564)
* initial version of clickable checklist * do not display checkboxes for empty lines if checklist is shorter than screen size * remove checklist exit after completing it cannot exit menu from menuTextView as level above there is while loop that cannot be stopped from thic place in code * menu entry to enable and disable interactive checklist * only when complete interactive checklist is closed * config updated & not display checkboxes when entered from "View Notes" * add setup entry for colorlcd * do not make interactive checkist when loaded from menu * fix datastruct size after merge * Companion support for interactive checklist * mark checklist lines as non-checkable with '=' for B&W radios * Process only items visible on screen This is also crucial when it comes to analyse non-checkable items on a checklist, as in this way there is no need to load non-visible items from SD-card * WIP fix merge problems * update yaml datastructs * restore most functionalities for interactive check lists on color LCD radios currently no automatic line wrapping and you can always exit the checklist, even when it is not fully done * finalise interactive checklists for color LCD * fix: rebase/merge issues * fix: model setup checklist section * fix: fix 212 model setup * Re-work of the some of the color lcd checklist code (#3787) * Move checklist logic to sub-class. Show model name instead of file name in title, show 'Preflight checks' in title2 for checklist. Handle long line wrapping of text. Don't indent lines without checkbox. Add 'RTN' button when done. * Code cleanup. * Simplify code by storing a list of checkboxes instead of scanning LVGL object hierarchy. * Indent checkboxes to make touch activation easier. Keep 'RTN' button visible so last checkbox is further from bottom of screen (for touch activation). 'RTN' button is disabled until checklist complete. * Add checkbox class constructor for preflight checks. * Fix checkbox size. --------- Co-authored-by: Piotr Rzeszut <piotrrze@gmail.com> Co-authored-by: 3djc <lesitewebdejc@hotmail.com> Co-authored-by: philmoz <philmoz@users.noreply.github.com> Co-authored-by: Phil Mitchell <phil.a.mitchell@gmail.com>
This commit is contained in:
co-authored by
Piotr Rzeszut
3djc
philmoz
Phil Mitchell
parent
ceba62650e
commit
06712d9b97
@@ -900,6 +900,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "关闭","开启","自动"
|
||||
#define TR_PREFLIGHT "初始位置检查"
|
||||
#define TR_CHECKLIST TR(INDENT "显示列表", INDENT "显示列表")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "串口"
|
||||
#define TR_AUX2_SERIAL_MODE "串口 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "串口供电"
|
||||
|
||||
@@ -915,6 +915,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Vyp","Zap","Auto"
|
||||
#define TR_PREFLIGHT "Předletová kontrola"
|
||||
#define TR_CHECKLIST TR(INDENT "Poznámky", INDENT "Zobrazit poznámky")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Seriový port"
|
||||
#define TR_AUX2_SERIAL_MODE "Seriový port 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Výkon portu"
|
||||
|
||||
@@ -910,6 +910,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Fra","Til","Auto"
|
||||
#define TR_PREFLIGHT "Fly checkliste"
|
||||
#define TR_CHECKLIST TR(INDENT "Checkliste", INDENT "Vis checkliste")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Seriel port"
|
||||
#define TR_AUX2_SERIAL_MODE "Seriel port 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Port strøm"
|
||||
|
||||
@@ -903,6 +903,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Aus","Ein","Auto"
|
||||
#define TR_PREFLIGHT "Vorflug-Checkliste"
|
||||
#define TR_CHECKLIST TR(INDENT "Checkliste", INDENT "Checkliste anzeigen") //9XR-Pro
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Serieller Port"
|
||||
#define TR_AUX2_SERIAL_MODE "Serieller Port 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Versorgung"
|
||||
|
||||
@@ -904,6 +904,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "OFF","ON","AUTO"
|
||||
#define TR_PREFLIGHT "Preflight Checks"
|
||||
#define TR_CHECKLIST TR(INDENT "Checklist", INDENT "Display checklist")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Serial port"
|
||||
#define TR_AUX2_SERIAL_MODE "Serial port 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Port power"
|
||||
|
||||
@@ -907,6 +907,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Off","On","Auto"
|
||||
#define TR_PREFLIGHT "Chequeos prevuelo"
|
||||
#define TR_CHECKLIST TR(INDENT "Lista verif", INDENT "Lista verificación")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Puerto serie"
|
||||
#define TR_AUX2_SERIAL_MODE "Puerto serie 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Port power"
|
||||
|
||||
@@ -919,6 +919,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Off","On","Auto"
|
||||
#define TR_PREFLIGHT "Preflight Checks"
|
||||
#define TR_CHECKLIST INDENT "Display Checklist"
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Sarjaportti"
|
||||
#define TR_AUX2_SERIAL_MODE "Sarjaportti 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Virta"
|
||||
|
||||
@@ -915,6 +915,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Off","On","Auto"
|
||||
#define TR_PREFLIGHT "Vérifs avant vol"
|
||||
#define TR_CHECKLIST TR(INDENT "checklist", INDENT "Afficher checklist")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Port série"
|
||||
#define TR_AUX2_SERIAL_MODE "Port série 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Port power"
|
||||
|
||||
@@ -903,6 +903,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Off","On","Auto"
|
||||
#define TR_PREFLIGHT "Controlli Prevolo"
|
||||
#define TR_CHECKLIST INDENT "Mostra Checklist"
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Porta Seriale"
|
||||
#define TR_AUX2_SERIAL_MODE "Porta Seriale 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Potenza porta AUX"
|
||||
|
||||
@@ -905,6 +905,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "OFF","ON","自動"
|
||||
#define TR_PREFLIGHT "飛行前チェック"
|
||||
#define TR_CHECKLIST TR(INDENT "Checklist", INDENT "チェックリスト表示")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "シリアルポート"
|
||||
#define TR_AUX2_SERIAL_MODE "シリアルポート 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "ポート出力"
|
||||
|
||||
@@ -906,6 +906,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Off","On","Auto"
|
||||
#define TR_PREFLIGHT "Preflight Checks"
|
||||
#define TR_CHECKLIST TR(INDENT "Checklist", INDENT "Toon Checklist")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Seriele poort"
|
||||
#define TR_AUX2_SERIAL_MODE "Seriele poort 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Port power"
|
||||
|
||||
@@ -901,6 +901,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "WYŁ","ZAŁ","Auto"
|
||||
#define TR_PREFLIGHT "Lista Ostrzeżeń"
|
||||
#define TR_CHECKLIST TR(INDENT "Czeklista",INDENT "Pokaż Listę Ostrzeżeń")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR(INDENT "C-Interakt", INDENT "Interkatywna lista ostrż.")
|
||||
#define TR_AUX_SERIAL_MODE "Port szreg."
|
||||
#define TR_AUX2_SERIAL_MODE "Port szreg. 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Zasil.portu"
|
||||
|
||||
@@ -907,6 +907,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "DESL","LIGA","AUTO"
|
||||
#define TR_PREFLIGHT "Checagem PreVoo"
|
||||
#define TR_CHECKLIST TR(INDENT "Checklist", INDENT "Display checklist")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Serial port"
|
||||
#define TR_AUX2_SERIAL_MODE "Serial port 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Port power"
|
||||
|
||||
@@ -934,6 +934,7 @@
|
||||
#define TR_PREFLIGHT "Startkontroller"
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "Av","På","Auto"
|
||||
#define TR_CHECKLIST TR(INDENT "Checklista", INDENT "Visa checklista")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR(INDENT "C-Interact", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "Serieport"
|
||||
#define TR_AUX2_SERIAL_MODE "Serieport 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "Strömkälla"
|
||||
|
||||
@@ -904,6 +904,7 @@
|
||||
#define TR_PREFLIGHT_POTSLIDER_CHECK "關閉","開啟","自動"
|
||||
#define TR_PREFLIGHT "初始位置檢查"
|
||||
#define TR_CHECKLIST TR(INDENT "顯示列表", INDENT "顯示列表")
|
||||
#define TR_CHECKLIST_INTERACTIVE TR3(INDENT "C-Interact", INDENT "Interact. checklist", INDENT "Interactive checklist")
|
||||
#define TR_AUX_SERIAL_MODE "端口"
|
||||
#define TR_AUX2_SERIAL_MODE "端口 2"
|
||||
#define TR_AUX_SERIAL_PORT_POWER "端口供電"
|
||||
|
||||
Reference in New Issue
Block a user