MASTER CAUTION in Primary Flight Data display
« 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.


Re: MASTER CAUTION in Primary Flight Data display
« Reply #2 on: February 03, 2017, 08:14:25 pm »
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?

f5soh

  • *****
  • 4572
    • LibrePilot
Re: MASTER CAUTION in Primary Flight Data display
« Reply #3 on: February 03, 2017, 08:20:12 pm »
Quote
Did I get it?

I don't know... :D

Re: MASTER CAUTION in Primary Flight Data display
« Reply #4 on: February 03, 2017, 08:25:57 pm »
Thought I was in a forum, not in a quiz ...

f5soh

  • *****
  • 4572
    • LibrePilot
Re: MASTER CAUTION in Primary Flight Data display
« Reply #5 on: February 03, 2017, 08:29:40 pm »
I don't think this is a quiz, i pointed you exactly (file/line) where the answer is in the code.

Re: MASTER CAUTION in Primary Flight Data display
« Reply #6 on: February 03, 2017, 08:47:51 pm »
OK. But the first link was not the answer, but the second one was ....   :D

f5soh

  • *****
  • 4572
    • LibrePilot
Re: MASTER CAUTION in Primary Flight Data display
« Reply #7 on: February 03, 2017, 08:53:32 pm »
Quote
OK. But the first link was not the answer

Really ?

Code: [Select]
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.

Re: MASTER CAUTION in Primary Flight Data display
« Reply #8 on: February 03, 2017, 09:26:30 pm »
Last coding I did was in FORTRAN IV and that is a very very long time ago  ;D