CAS Warning Lights on Thranda Cessna 208

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Message
Author
AnthonySullivan
Posts: 93
Joined: Wed Jul 01, 2020 8:06 am

CAS Warning Lights on Thranda Cessna 208

#1 Post by AnthonySullivan »

I am running X-Plane 12 and have the Thranda Cessna 208 Caravan.
I have developed an Air Manager instrument to show the CAS Warning lights.
Joseph Noe from Thranda has kindly told me that they work on the data_ref "thranda/TCAS/AnnLtA" which is FLOAT [400].
I can see them operating fine in X-Plane when I manipulate switches but I cannot get any response from Air Manager.

The lights are in a matrix of eight columns and three rows.
I am totally perplexed why this instrument is not working as it is so simple. The dataref Float matrix is large at 400 but does that matter?

I would be very grateful if someone could help me out with this.
best wishes
Anthony Sullivan
Warning Screen.png
Cessna 208 Caravan - Warning Lights CLONE.siff
(546.02 KiB) Downloaded 36 times

User avatar
Ralph
Posts: 8127
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: CAS Warning Lights on Thranda Cessna 208

#2 Post by Ralph »

400 is way too much. There are just 24 lights.

SimPassion
Posts: 5363
Joined: Thu Jul 27, 2017 12:22 am

Re: CAS Warning Lights on Thranda Cessna 208

#3 Post by SimPassion »

AnthonySullivan wrote: Thu Sep 21, 2023 9:17 am "thranda/TCAS/AnnLtA" which is FLOAT [400].
as Ralph already mentioned, there's a limit in Air Manager dataref array handling at once, so we are able to limit on our own, without any issue, the dataref array max index in the subscription, in this way, with let say only the 24 first values useful for this usage, exactly as you done in your instrument sample with your own 100 max index. Performing this way will lower Air Manager memory consumption on dataref subscription :

Code: Select all

xpl_dataref_subscribe("thranda/TCAS/AnnLtA", "FLOAT[24]", WarningLight_Callback)
image.png

User avatar
Ralph
Posts: 8127
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: CAS Warning Lights on Thranda Cessna 208

#4 Post by Ralph »

If I remember correctly, it has to do with the package size of UDP. But I might be wrong.

SimPassion
Posts: 5363
Joined: Thu Jul 27, 2017 12:22 am

Re: CAS Warning Lights on Thranda Cessna 208

#5 Post by SimPassion »

You're mostly more right than me Ralph, I'm not sure to remember properly on the root cause

User avatar
Keith Baxter
Posts: 4735
Joined: Wed Dec 20, 2017 11:00 am
Location: Gauteng

Re: CAS Warning Lights on Thranda Cessna 208

#6 Post by Keith Baxter »

Hi,
Yes it is 128 if I rem correct

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
Sling
Posts: 5274
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: CAS Warning Lights on Thranda Cessna 208

#7 Post by Sling »

I guess the potential issue here is if Thranda or another dev are using different indexes throughout that 400. How does one get indexes beyond the current limit?

SimPassion
Posts: 5363
Joined: Thu Jul 27, 2017 12:22 am

Re: CAS Warning Lights on Thranda Cessna 208

#8 Post by SimPassion »

I guess it would be a good point if SI will introduce a new syntax allowing a range with the mentioned 128 max indexes amount in any case ???

so, for example : [256-384] or [80-208]
in another way : the value will be the index start with a max of default 128 if required, or maxed by the range requested (though limited by 128)

User avatar
Ralph
Posts: 8127
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: CAS Warning Lights on Thranda Cessna 208

#9 Post by Ralph »

I don't know of any case where this is necessary, so I rather don't invest time into that.

User avatar
Sling
Posts: 5274
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: CAS Warning Lights on Thranda Cessna 208

#10 Post by Sling »

Ralph wrote: Sat Sep 23, 2023 9:48 am I don't know of any case where this is necessary, so I rather don't invest time into that.
Do we know it’s not necessary for this case yet?

Post Reply