Hi,
learning the Ace tool for some simple gauges.
Have trouble terminating the {if} part of a conditional GaugeString property in a GaugeText element.
This is the (faulty) code for a digital ADF bearing readout.
What it SHOULD do: if ADF is tuned and in range: show the magnetic bearing of the station. If not, show "---".
What it DOES: if ADF found: shows the correct number AND the "---" part (see pic, the text boxes below the default dial). If ADF not found: blank readout.
Looks like or the {if} part is badly terminated, or the {els} part wrongly initiated, but can't find it. Probably something real simple.
Greetings,
Wim
learning the Ace tool for some simple gauges.
Have trouble terminating the {if} part of a conditional GaugeString property in a GaugeText element.
This is the (faulty) code for a digital ADF bearing readout.
Code:
%((A:ADF1 SIGNAL,enum) (A:avionics master switch, bool) * 0 !=)
%{if}%((A:Plane Heading degrees Gyro,radians) (A:ADF1 Radial,Radians) + rddg dnor)%!03d!
%{els}%---
%{end}
What it SHOULD do: if ADF is tuned and in range: show the magnetic bearing of the station. If not, show "---".
What it DOES: if ADF found: shows the correct number AND the "---" part (see pic, the text boxes below the default dial). If ADF not found: blank readout.
Looks like or the {if} part is badly terminated, or the {els} part wrongly initiated, but can't find it. Probably something real simple.
Greetings,
Wim





