• Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum

Bonanza Radar Altitude

Scheduled Pinned Locked Moved Steam Gauge Overhaul
7 Posts 3 Posters 315 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bert Pieke
    wrote on last edited by Bert Pieke
    #1

    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.

    V 1 Reply Last reply
    0
  • V Offline
    V Offline
    Voice of Reason JF Staff
    replied to Bert Pieke on last edited by
    #2

    @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 / *
    }

    B 2 Replies Last reply
    0
  • B Offline
    B Offline
    Bert Pieke
    replied to Voice of Reason on last edited by Bert Pieke
    #3
    This post is deleted!
    1 Reply Last reply
    0
  • B Offline
    B Offline
    Bert Pieke
    replied to Voice of Reason on last edited by Bert Pieke
    #4
    This post is deleted!
    B 1 Reply Last reply
    0
  • B Offline
    B Offline
    Bert Pieke
    replied to Bert Pieke on last edited by Bert Pieke
    #5

    @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..

    8047378 1 Reply Last reply
    0
  • 8047378 Offline
    8047378 Offline
    804737
    replied to Bert Pieke on last edited by
    #6

    @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...Capture d’écran 2023-03-22 180428.jpg

    1 Reply Last reply
    0
  • B Offline
    B Offline
    Bert Pieke
    wrote on last edited by Bert Pieke
    #7

    @Voice-of-Reason Looks spectacular... :slightly_smiling_face:

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users