Jump to content

kiralema

Members
  • Posts

    1
  • Joined

  • Last visited

kiralema's Achievements

Newbie

Newbie (1/14)

  • One Month Later
  • Week One Done

Recent Badges

0

Reputation

    First of all, thank you Raphael for writing this incredibly useful piece of software! To all who cannot download the program, please use the right mouse key to "Copy Link Address." AFAIK, the reason why the direct download does not work is because the link to the file is pointing to an unsecured HTTP protocol while the link itself is passed through the secured HTTPS server. It seems all Chrome-based browsers will refuse such connection by default. My suggestion is to place the file behind the HTTPS, which will make it visible to Chrome-based browsers. Unfortunately, there is some issue with the self-extracting archive (AS_HONEYCOMB_XP11_WINDOWS_V2200.exe). It seems, if a previous version of the program (such as v2.1) was installed, the archive will try to locate the X-Plane folder, and for some reasons it can't. In my case, it gives me this error right after choosing "English" as the installation language: "Missing Path: E:\Games/X-Plane 11/\resources\" and after that: "Runtime error (at 9:570): Null Pointer Exception." Raphael, if you could have a look at this error that would be greatly appreciated. Thank you. Regarding the previous version 2.1, may I ask a few questions? Q1. It seems, unlike the Arduino-based code, which scans all digital inputs in a loop, this code only reads the events when they actually occur. For example, flipping the FCU selector will only register the "HDG" mode when the selector is moved to the HDG position. However, if it was in this position previously, when loading the X-Plane, the FCU_SELCTOR variable isn't going to be updated, and the rotary switch won't register any changes to any variable. Would it be possible to update the code so that the position of any switch is recorded without flipping the switch back and forth to register a new value of a variable? Q2. I am trying to program the AP portion so that it also acts as an additional control for Radio/NAV devices (such as G430/G530). I am programming one of the 7 switches so it acts as a "trigger" to switch from AP-mode to Radio/NAV mode. Then I can use the FCU selector to select the necessary rotary control of the radio by controlling the respective variables. For instance, for default C172 with G530 I can control the following variables by the rotary knob when the FCU selector is in the following positions: ALT -> sim/GPS/g430n1_coarse_[down/up] VS -> sim/GPS/g430n1_fine_[down/up] HDG -> sim/GPS/g430n1_chapter_[down/up] CRS -> sim/GPS/g430n1_page_[down/up] IAS -> sim/instruments/barometer_[down/up] In my mind, the most efficient way to make it work would be to look for two conditions for the "Select Button," and combining them with the "AND" link: one condition would check for the value of FCU_SELECTOR variable, and the 2nd condition would check if the appropriate switch is triggered (such as value of 1 vs 0). The logic here would be: if (FCU_SELECTOR == "ALT"){ if (trigger == 1){ sim/GPS/g430n1_coarse_down = sim/GPS/g430n1_coarse_down + 1 } else { sim/GPS/sim/autopilot/altitude_down = sim/GPS/sim/autopilot/altitude_down + 1 } } else if (FCU_SELECTOR == "VS"){... etc. For some reasons, however, I am unable to perform this in the Honeycomb software. Any help would be appreciated. I can overcome this by setting up the FCU_SELECTOR switch variable based on the trigger values (so instead of having 5 values, I have 10 such as ALT, VS, HDG, CRS, IAS, COARSE, FINE, CHAPTER, PAGE, and BAROMETER), but then I run into a problem of flipping the switches several times before the code actually captures the value of all variables (as mentioned in the previous comment). What do you think would be the most efficient way to achieve such functionality? Can you comment please? Q3. May I also ask, what is the right format of the custom-named variables? In the case of the FCU selector, the variable is set as "INT:FCU_SELECTOR, string." What is the meaning of "INT" and which other types are acceptable other than "string?" Thank you Raphael, and sorry for such a long comment... 2022-08-04 - default C172 X-Plane profile.json
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy & Terms of Use