I want to write some conditional math calculations to determine whether a parameter is displayed as green/yellow/red.
For example, in my aircraft, I have a hydraulically actuated landing gear.
If the gear is UP, the HydUp pressure should be ~1000 psi and the HydDown pressure should be ~0-20 psi.
If the gear is DOWN, then HydUp should be ~0-20psi and the HydDown should be ~400 psi.
I want to display the pressures all the time, and mark them Red/Yellow/Green as appropriate for the gear position.
When UP:
HydUp: Green 900-1500 psi, Yellow 500-899psi, Red 0-499, Yellow 1501-2000, Red 2001-5000
HydDown: Green 0-49, Yellow 50-99, Red 100-5000
When DOWN:
HydUp: Green 0-49 psi, Yellow 50-99, Red 100-5000
HydDown: Green 400-799 psi, Yellow 300-399 psi, Red 0-299, Red 800-5000
Is there a way to mathematically combine two inputs to drive a single display widget?
Can boolean expressions be used to modify display of a sensor input?
For the purpose of this discussion, the other inputs could be landing gear position switch (0V or +12V), or the (three) landing gear down position sensors (0V or +12V), along with the hydraulic pressure sensors.
Another use case is to combine the three gear position sensors to give a master GearDown signal (GearDown = LeftDown AND NoseDown AND RightDown).
For example, in my aircraft, I have a hydraulically actuated landing gear.
If the gear is UP, the HydUp pressure should be ~1000 psi and the HydDown pressure should be ~0-20 psi.
If the gear is DOWN, then HydUp should be ~0-20psi and the HydDown should be ~400 psi.
I want to display the pressures all the time, and mark them Red/Yellow/Green as appropriate for the gear position.
When UP:
HydUp: Green 900-1500 psi, Yellow 500-899psi, Red 0-499, Yellow 1501-2000, Red 2001-5000
HydDown: Green 0-49, Yellow 50-99, Red 100-5000
When DOWN:
HydUp: Green 0-49 psi, Yellow 50-99, Red 100-5000
HydDown: Green 400-799 psi, Yellow 300-399 psi, Red 0-299, Red 800-5000
Is there a way to mathematically combine two inputs to drive a single display widget?
Can boolean expressions be used to modify display of a sensor input?
For the purpose of this discussion, the other inputs could be landing gear position switch (0V or +12V), or the (three) landing gear down position sensors (0V or +12V), along with the hydraulic pressure sensors.
Another use case is to combine the three gear position sensors to give a master GearDown signal (GearDown = LeftDown AND NoseDown AND RightDown).
Last edited: