Bonanza Radar Altitude
-
The radar altitude needle goes back to zero when the altitude is > 3000 ft. Should it not go into hiding instead? If I hold around 3000 feet, the needle flips between 2500 and zero.. that can not be right..
Also, I know I have lots of CPU cycles.. but what is a calculation like: 500 0 - 500 0 - / 170 0 - * 0 + 100 270 / * good for? :confused_face:
@Voice-of-Reason Here is a simplified code template as a suggestion for the next update: https://www.dropbox.com/s/nxqzqvklxm1zy7e/RA updated.zip?dl=0
Edited to move needle to off position, and test position to 50 feet.
-
@bert-pieke Here's a reply direct from the developer for you Bert. Hope it helps.
"Upon closer review of the KRA-10's manual, this radar altimeter does have an off-scale high parked position, as opposed to returning to the off position, like in other larger aircraft (which presumably spend very little time hovering around 3,000 ft). The code that evaluates to constants is present so that I can easy come back and make changes (like this very one!) in the future, while maintaining parody with my custom template that generated that code in another file. Trust me, I am very conscious of my code footprint in these aircraft to ensure that they can maintain higher FPS than the default ones, and this code will have zero effect on your performance. In fact, my code likely several thousand lines fewer of useless code than the expanded Asobo templates, which are rife with wasted lines for the sake of abstraction. Believe it or not, the 10,000 lines of RNP in the AnalogBonanza.xml expands to probably 100,000+ when running in-engine. Thank you for taking the time to provide an example code segment. Unfortunately, it will read off-scale high when there is no power supplied to the unit. I have coded my own solution that will be available in the next update for the Bonanza. If you would like an instant solution, here is my code snippet (optimized, just for you, minus the constants, sorry), below. Thank you for the feedback!"
(A:CIRCUIT ON:@RadarAltimeterCircuit, bool) if{
(L:var_RadarAltimeterTest, bool) ! if{
(A:RADIO HEIGHT,feet) 500 <= if{
(A:RADIO HEIGHT,feet) 0 < if{
0 100 270 / *
}
els{
(A:RADIO HEIGHT,feet) 0 - 500 0 - / 170 0 - * 0 + 100 270 / *
}
}
els{
(A:RADIO HEIGHT,feet) 3000 > if{
258 100 270 / *
}
els{
(A:RADIO HEIGHT,feet) 500 - 3000 500 - / 258 170 - * 170 + 100 270 / *
}
}
}
els{
500 0 - 500 0 - / 170 0 - * 0 + 100 270 / *
}
}
els{
0 100 270 / *
} -
This post is deleted!
-
This post is deleted!
-
@Voice-of-Reason BTW, the TEST position is "50 feet" according the manual I've got.. but I have found no way to press the test button..
-
@bert-pieke
I second that, would be nice to get the test button working.Also working on some refinements in textures of the instruments.Hope you'll appreciate... -
@Voice-of-Reason Looks spectacular... :slightly_smiling_face: