flybywiresim / aircraft

The A32NX & A380X Project are community driven open source projects to create free Airbus aircraft in Microsoft Flight Simulator that are as close to reality as possible.
https://flybywiresim.com
GNU General Public License v3.0
4.98k stars 1.04k forks source link

Global Simvars not changed #5855

Open mixMugz opened 3 years ago

mixMugz commented 3 years ago

Aircraft Version

Development

Build info

{
  "built": "2021-09-19T13:44:38+00:00",
  "ref": "master",
  "sha": "80496bdd2b5281884df0ba379713b0cefbdce7fa",
  "actor": "2hwk",
  "event_name": "manual"
}

Describe the bug

Parking brake not changing A: BRAKE PARKING INDICATOR or A:BRAKE PARKING PORITION. Also engaging autopilot not changing A:AUTOPILOT MASTER

It's possible to addition use Aircraft Simvar to indicate state of these system?

Expected behavior

Simulation SimVars must change depend of state

Steps to reproduce

  1. Load aircraft
  2. Load SimWar Watcher
  3. Change Autopilot/ParkBrake
  4. Look simwars

References (optional)

No response

Additional info (optional)

No response

Discord Username (optional)

No response

Benjozork commented 3 years ago

The first is not possible due to technical limitations.

@aguther would know for the second - however you can use our LVars for it.

mixMugz commented 3 years ago

The first is not possible due to technical limitations.

can you explain about limitation? All other aircraft (even custom Aerosoft/PMDG work with this variable) work with this simvar, why A32NX not work?

sidnov commented 3 years ago

We use brakes simulated by actual hydraulic systems, that cannot be simply controlled by a 0/1 brake system in the sim

Benjozork commented 3 years ago

We use a custom autobrake system and disabling the one included with MSFS disables this variable.

mixMugz commented 3 years ago

I understand. But it's possible to set simvar parkbrake to 1 when all the conditions for this are met and parking brakes are actually set on the aircraft?

Benjozork commented 3 years ago

No. The simvar becomes locked when disabling MSFS' parking brake.

aguther commented 3 years ago

Same is for the AP, it‘s not possible to set it or at least I don‘t know a way how to do it. If you know a way let me know.

2hwk commented 2 years ago

Reinvestigate after SU6

donstim commented 2 years ago

Does this help in any way? https://devsupport.flightsimulator.com/questions/564/how-to-set-brake-parking-position.html

aguther commented 2 years ago

Unfortunately I doubt it will help. The issue is that when one writes that variable the original system is activated which is not what we want.

A compromise for the case of the parking brake could be that when parking brake is available with enough pressure (so expected to work) and you set it, then this original variable gets also set. When pressure falls under a certain level and it's expected that braking force is not really applied the variable could be unset.

I think this approach will not work in all cases, but in that special case it might be ok.

Let's hope we get sometime in the future the possibility to exchange the class in the sim the variable is writing to with a dummy implementation that only stores and provides the value. Then it would be no problem anymore.

derl30n commented 2 years ago

Do we drop support for global sim vars in case of fully simulated custom systems? how to proceed with these issues?