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.99k stars 1.04k forks source link

Unable to engage HDG on AP #5479

Closed ribase closed 3 years ago

ribase commented 3 years ago

Aircraft Version

Development

Build info

{
  "built": "2021-07-30T02:31:34+00:00",
  "ref": "master",
  "sha": "bab6a451346ee9fb2a28abe20bf4ec454933e371",
  "actor": "Benjozork",
  "event_name": "manual"
}

Describe the bug

Unable to activate HDG mode inflight

Expected behavior

Able to activate HDG mode inflight

Steps to reproduce

  1. Fly
  2. Set direct
  3. Press HDG knob

References (optional)

No response

Additional info (optional)

No response

Discord Username (optional)

No response

marcsoler commented 3 years ago

Are you pressing or pulling the knob? Also check this comment.

ribase commented 3 years ago

Are you pressing or pulling the knob? Also check this comment.

Already checked this ;). Press or push does not do anything, very strange, because with speed button it works. The AP indicates that i interact, puts a ball aside of the set HDG but not activate.

aguther commented 3 years ago

Please reload the plane or even better the sim. For an to us unknown reason the HDG pull does sometimes not work after the wasm was just compiled.

So potentially happens every time after updating A32NX and the wasm was touched somehow.

Unfortunately the issue is not on our side, it’s an issue of SU5 and I really hope it gets fixed with the hotfix.

Node-Ninja commented 3 years ago

Still experiencing the same thing even after the hotfix. The heading cannot be engaged.

ferryvanaesch commented 3 years ago

Same here; first time victim btw.

Pretty-Flacko commented 3 years ago

I guess I encountered the same problem with altitude knob (can't enable managed altitude sometimes)

eljiot5169 commented 3 years ago

Same here too, swiched FD off and on, then it worked.

noobielameo commented 3 years ago

Same issue here, with AP pushing hdg activates managed heading while changing heading pulling the knob does nothing but notice does change to dotted line on the panel.

aguther commented 3 years ago

New interaction system?

Teslix commented 3 years ago

I update my DEV version almost daily, and never encountered this bug until yesterday's build. All systems working nominally, but I didn't need heading mode until my approach. I was given vectors to intercept, and couldn't use the knob to change to heading mode and had to fly manually instead. When pushing/pulling the knob, the correct choice would come alive on the PDF (dashed line for heading, solid line for nav) and the heading numbers would come alive and you can adjust them, but the plane wouldn't actually turn to the desired heading, it just stays following the planned route (still in nav mode)

aguther commented 3 years ago

I mean we didn’t change anything in that area. Now guess what was changed…

hiroooo1997 commented 3 years ago

For those knobs, it seems Left Click + Right Click to Push Left Click + Middle Click to Pull by default.

patbuser commented 3 years ago

Exactly the same here. Unable to get out of managed heading (nav mode). I had to fly the approach with given vectors manually. The little dot on the right of the heading display doesn't disappear when pulling the knob.

twasono commented 3 years ago

I have the same issue.

This happens when I was on approach phase. I changed the approach/runway on the MCDU, then I decided to use HDG mode by pulling the HDG knob.

The heading number was displayed but the little white dot stays there. I can turn the knob to change the heading number, but the AP doesn't follow it.

aguther commented 3 years ago

To distinguish a bit between the issue that the event does not work on first load after an A32NX Update, it would be helpful if this information would be provided.

Additionally it would be helpful if you make screenshots or videos…it’s quite time consuming to always ask for those basics.

ribase commented 3 years ago

In the content manager there was some update for premium content as well, since i did it i dont have any problems since.

baptista54 commented 3 years ago

even here, HDG does not accept, pulling or pushing. I have dotted lines on the MDCU even after the plan executed and the NAV turned on. Many CTDs but I can fly at some point. Any suggestions? Using the DEV version (it was perfect before this damn SU5).tks

daddyali commented 3 years ago

Hope this helps: Example here - I'm approaching EGGD, EXMOR at the top of the ND is the start of the STAR. Due to the known pre-existing MSFS navigation bug, at time code 0:14, when approach mode kicks in, the nav system gives up on the STAR and heads off direct to BRI. You can see the ND updating accordingly and the aircraft turns. All this is 'normal' and I'm used to pulling the heading knob to 'selected' and manually vectoring. However, note this time I pull the heading knob, the heading window 'opens' but the managed dot remains and the aircraft continues towards BRI despite my attempts to cycle the heading back to North. From around timecode 1:12 I'm pushing and pulling the knob (I'm using full legacy mode for cockpit interaction) and although the ND path updates between dotted and solid lines, the aircraft persists in flying what is effectively managed mode to BRI. As others above, my only way out is AP off and hand fly.

https://youtu.be/7WjlxxXa-Kk

aguther commented 3 years ago

@daddyali Was this the first flight after the installation or update of the A32NX?

Hulkios commented 3 years ago

Go to general options > accesibility > change cockpit interaction system to legacy and then try

patbuser commented 3 years ago

@aguther for me it was indeed the 1st flight (ie first load of plane) after the update. Will test loading, exiting and reloading the next time.

patbuser commented 3 years ago

@Hulkios I don't use the the new mode, I'm on legacy already

daddyali commented 3 years ago

@aguther tbh, not sure as I was in and out of the sim yesterday doing the post-su5 'add back the addons' dance. Will retest to be certain.

LordNecton commented 3 years ago

Im having the same problem as you guys on this topic...Since SU 5 half the sim is now broken, I blame Asobo

aguther commented 3 years ago

Please try again after reloading the plane. It might happen after direct load when A32NX was updated.

ewold commented 3 years ago

i can confirm this is after updating the plane. Restarting it solved it for me. I created a video of the behaviour before the restart. I turned the heading mode on and off and rotating the knob. The plane reacted but with showing a dashed line but is not turning towards the requested heading. https://streamable.com/j1o91g

baptista54 commented 3 years ago

Legacy cockpit happily resolved. HDG ok .I'll try to update the airac and automatic icaos on the mdcu display. Thanks to this amazing forum. Good flights fly again.

aguther commented 3 years ago

@ewold The issue is that some events need to go to other parts written in JS and they seem to work, but the event notifying the custom autopilot (which is implemented in a wasm) is not receiving the event. I‘ve brought this up early to MS/Asobo, but I got no feedback yet about the reason. It‘s also strange because it always affects the same event while in my tests all other events worked well. Only the one for HDG pull does not work.

daddyali commented 3 years ago

Also able to confirm following a retest (deliberately not updating the mod first) that the 'pull HDG mode' issue does not present itself so I must have been flying yesterday directly after a mod update. I've clearly been Asoboed. Many thanks to you @aguther and the wider team for making this bird so fun to fly despite this!

hawaikicr commented 3 years ago

Salutations, unfortunately I continue to have the same problem, the plane continues to be in managed mode, I cannot activate the HDG, the strange thing is that if I am on the ground the HDG I can activate it, but in the approach phase or anyway at altitude absolutely not ... down arrow to pull the pawl but the management's obsession is always and the plane continues to follow the set route ... I have already followed all your advice ... I don't know anymore ' what to do! Thanks and good job! The first image in flying at 30000 can't engage HDG, the second after landing...

Screenshot (74) Screenshot (76)

aguther commented 3 years ago

On ground it works in any case because the pull event is not needed to disarm NAV, rotation is enough.

hawaikicr commented 3 years ago

So what is the problem? what can i do to resolve it? I ask in my forum and the same problem have other people too...

joseG69 commented 3 years ago

Problem solved for me. Solution is to close de sim and reload the plane. In conclusion, you cant fly directly after updating. Update -- launch the sim -- load de plane -- close de sim -- launch the sim --- load the plane -- fly

aguther commented 3 years ago

@hawaikicr see also here https://github.com/flybywiresim/a32nx/issues/5566

It’s sometimes hard to keep overview because of duplicate issues, so it’s easy to forget to provide information where it’s needed. A bit of help of the users to avoid that would be great.

We are trying to do our best to resolve issues and this needs to be done in our spare time, which often takes a lot of time. I will bring this issue up with Asobo next week to find a root cause.

The issue is quite strange because all other events are working and the even in question also works correctly, but not right away when the wasm was just compiled.

2hwk commented 3 years ago

I've had this happen on a recent flight and I was able to fix it by reloading A320_Neo_FCU. I've also had it with the flight plan manager branch, so I feel this is probably a bug that we can fix.

hawaikicr commented 3 years ago

Hi guys and thank you...

Can u explain me how you have reload the a320_neo_fcu exactly? Perphas i reload but no how i have to do...

Yesterday i have clean the MOD directory and cache too, then reinstallal all to the Last DEV versión, open sim, open plane and close all... Then reopen sim and nothing still problem...

Wait, thank you very much for your incredibile assista ce free!

Ciao

Stefano Miglioli

From my mobile with outlook

Softworld snc

Cremona

www.softworld.info

joseG69 commented 3 years ago

Good morning Another interesting point I realized is the first time you load the plane after an update, it takes a lot of time to be completed, almost an eternity, after clicking the fly button. In the following times, this process is much more faster. Congratulations for your team for the excellent job you are doing.

We are looking forward to the new FPM.

Best regards

Jose

joseG69 commented 3 years ago

@hawaikicr when I say I load the plane, I select A320 NEO FBW in the world map, select a gate in an airport of choice and click FLY!

hawaikicr commented 3 years ago

Yesss!

Thanks you and all the staff for patience, i confirm that If reload airplane completely it's ok...

Good job and thank to José many Thanks

Stefano Miglioli

From my mobile with outlook

Softworld snc

Cremona

www.softworld.info

aguther commented 3 years ago

I also found something interesting: the issue indeed appears right after compilation of the wasm and when the issue is there, sending the same event from outside via SimConnect works without issues.

That means the issue is somehow related to the JS part.

The strange part on that is that I already debugged the JS code and the event that is triggered right after the one to the AP is working fine and can be observed in the console. So the call seems to work without error message. That suggests an issue inside the sim. Why all the other events work is strange.

2hwk commented 3 years ago

I also found something interesting: the issue indeed appears right after compilation of the wasm and when the issue is there, sending the same event from outside via SimConnect works without issues.

That means the issue is somehow related to the JS part.

The strange part on that is that I already debugged the JS code and the event that is triggered right after the one to the AP is working fine and can be observed in the console. So the call seems to work without error message. That suggests an issue inside the sim. Why all the other events work is strange.

Note that setting K:A32NX.FCU_TO_AP_HDG_PUSH works but not K:A32NX.FCU_TO_AP_HDG_PULL, and as noted K:HEADING_SLOT_INDEX_SET always works. Also, reloading the js in A320_Neo_FCU.js using either Coherent GT Debugger (reload ignoring cache) or WebUIDevKit resolves the issue entirely, as does restarting the flight.

See these 2 videos of some weirdness after freshly compiled WASM is loaded in for the first time, these go away from the next load in. (Alt glitching, unable to pull selected heading)

https://user-images.githubusercontent.com/15316958/128606668-ef642c49-0615-4c9f-9d97-c316cb88c12d.mp4

https://user-images.githubusercontent.com/15316958/128606682-631930f2-e508-40f6-9f70-bf90028e9432.mp4

2hwk commented 3 years ago

Console log on first compile image

Blue1308 commented 3 years ago

Hi, Just an observation on my side, with a flightplan simbrief in MCDU. If I don't arm nav mode before take-off, HDG works correctly during my full flight. If Nav mode is arm before take off HDG don't work at all

Christian

aguther commented 3 years ago

Please reload the flight right after spawning when you’ve updated the A32NX. Then it should work.

Blue1308 commented 3 years ago

Please reload the flight right after spawning when you’ve updated the A32NX. Then it should work.

Ok great thanks it works. Should we do it with each new update?

sidnov commented 3 years ago

Please reload the flight right after spawning when you’ve updated the A32NX. Then it should work.

Ok great thanks it works. Should we do it with each new update?

We are investigating the issue. We'll update you once there is an update. Until then, a reload should help.

2hwk commented 3 years ago

Heads up, we have identified the problem. We actually have a workaround that solves the issue, but a proper rework and fix is in the pipeline.

hawaikicr commented 3 years ago

Avise us when do it?

Stefano Miglioli

From my mobile with outlook

Softworld snc

Cremona

www.softworld.info

2hwk commented 3 years ago

Avise us when do it? Stefano Miglioli From my mobile with outlook Softworld snc Cremona www.softworld.info

I can't give you a timeline, but in any case we know what the issue is and how to fix it, it's just we will need to implement and then test the changes before this will go live. It will be in the dev version as soon as possible.

Note that this change may not entirely resolve the issue if this is occuring in mid-flight even after you have already reloaded the plane at least once, but the hope is this will solve the problem in any case.

hawaikicr commented 3 years ago

Thank you very much!!!

Stefano Miglioli

From my mobile with outlook

Softworld snc

Cremona

www.softworld.info