Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendCTRL not working for AI aircrafts in python 3 #315

Open
Clemarce opened this issue Sep 11, 2024 · 0 comments
Open

sendCTRL not working for AI aircrafts in python 3 #315

Clemarce opened this issue Sep 11, 2024 · 0 comments

Comments

@Clemarce
Copy link

Hello,

I am currently trying to change the parameter "Longitunidal stick" of an AI aircraft using the function sendCTRL to make the plane turn.
The function is called as follows : sendCTRL( [-998, 0.5, -998, 0.14, 1, -998], 2 ).

When using aircraft index 2, the value of long stick (0.5 here) is not correctly applied to the ai aircraft. Eventhough the log seems to show that it is working, the value is actually still at 0 (seen with getCTRL).

image

image

When using the same command with index 0 (player aircraft), the long stick value is correctly modified.

Does anyone have any idea of how to fix this ?

Precisions :

  • I have set override_planepath to False and override_ai_autopilot to True for all aircrafts.
  • For ai aircrafts, other parameters like gear deployment or throttle are strangely set correctly by sendCTRL. Thus it seems that the function is only partially working in that case.
  • I already tried to use the dref [sim/multiplayer/controls/yoke_heading_ratio] to get the same result but it is not doing anything at all on the plane.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant