LibrePilot Forum
General Category => General Discussion => Topic started by: kalle123 on February 03, 2017, 07:49:03 pm
-
Short question. That MASTER CAUTION sign in PFD. Is that static in red and just a label, or does it chance or blink or ...? And if so, when?
Could not find any information in the documentation. Thank you.
-
You can find answer in code, here:
https://bitbucket.org/librepilot/librepilot/src/758af312b51c1bb39bddfeb807d1a1efe5ce9db7/ground/gcs/src/share/qml/pfd/Warnings.qml?at=next&fileviewer=file-view-default#Warnings.qml-124
And here:
https://bitbucket.org/librepilot/librepilot/src/758af312b51c1bb39bddfeb807d1a1efe5ce9db7/ground/gcs/src/share/qml/js/uav.js?at=next&fileviewer=file-view-default#uav.js-523
-
Thank you for pointing to the code.
https://bitbucket.org/librepilot/librepilot/src/758af312b51c1bb39bddfeb807d1a1efe5ce9db7/ground/gcs/src/share/qml/pfd/Warnings.qml?at=next&fileviewer=file-view-default#Warnings.qml-124
That tells me "red" background and "white" text "MASTER CAUTION"
https://bitbucket.org/librepilot/librepilot/src/758af312b51c1bb39bddfeb807d1a1efe5ce9db7/ground/gcs/src/share/qml/js/uav.js?at=next&fileviewer=file-view-default#uav.js-523
seems to tell me more
function masterCautionWarning() {
return ((systemAlarms.alarmBootFault > SystemAlarms.Alarm.OK) ||
(systemAlarms.alarmOutOfMemory > SystemAlarms.Alarm.OK) ||
(systemAlarms.alarmStackOverflow > SystemAlarms.Alarm.OK) ||
(systemAlarms.alarmCPUOverload > SystemAlarms.Alarm.OK) ||
(systemAlarms.alarmEventSystem > SystemAlarms.Alarm.OK))
Did I get it?
-
Did I get it?
I don't know... :D
-
Thought I was in a forum, not in a quiz ...
-
I don't think this is a quiz, i pointed you exactly (file/line) where the answer is in the code.
-
OK. But the first link was not the answer, but the second one was .... :D
-
OK. But the first link was not the answer
Really ?
opacity: UAV.masterCautionWarning() ? 1.0 : 0.4
This means if UAV.masterCautionWarning() is true, the masterCaution opacity is set to 1 = "more visible" or normal display.
If not true (this mean, no error) the opacity is set to 0.4. = "less visible"
This first link simply tells you the UAV.masterCautionWarning() is the function used for MasterCaution alarm display.
-
Last coding I did was in FORTRAN IV and that is a very very long time ago ;D