Open becas22 opened 1 week ago
Related to "Sync EFIS controls between Captain and F/O"
It seems, that BTN_LS_x_FILTER_ACTIVE
is both written from FlyByWireInterface::updateFoSide
and A380_COCKPIT.xml
It seems, that
BTN_LS_x_FILTER_ACTIVE
is both written fromFlyByWireInterface::updateFoSide
andA380_COCKPIT.xml
That’s the EFIS sync. Maybe something wrong in the A380 xml trying to write the var all the time?
This will do it https://github.com/flybywiresim/aircraft/blob/1a3ddc505bb7aa3878d0e4bf8a2502981eb91d85/fbw-a380x/src/base/flybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/A380_COCKPIT.xml#L109. We should either get rid of the indirection here, or change the sync code to use the driving Lvar.
It seems, that
BTN_LS_x_FILTER_ACTIVE
is both written fromFlyByWireInterface::updateFoSide
andA380_COCKPIT.xml
That’s the EFIS sync. Maybe something wrong in the A380 xml trying to write the var all the time?
This will do it
. We should either get rid of the indirection here, or change the sync code to use the driving Lvar.
Yep, the architecture surrounding these LS filters and their SimVars is still dubious, maybe there's another, better way.
Maybe we should get rid of BTN_LS_x_FILTER_ACTIVE
, and only use A380X_EFIS_x_LS_BUTTON_IS_ON
. We have separate PFD code anyways, and slightly different semantics behind that button
Yep, the architecture surrounding these LS filters and their SimVars is still dubious
The cockpit controls architecture is such that anybody can write the local vars to change the state. That can be Mobiflight/SPAD/AAO, XML behaviours, the sync code etc. The template in the A380 constantly overwriting them with some other value breaks the design.
Aircraft Version
Development
Build info
Describe the bug
With a single LS p/b on, the LS scale flickers. With both LS p/b on, the LS scale displays normally
Expected behavior
LS scale displaying normally
Steps to reproduce
References (optional)
No response
Additional info (optional)
No response
Discord Username (optional)
Bernardo R