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

Initial parameters #1

Open
ankitchandraiaf opened this issue Jan 15, 2023 · 1 comment
Open

Initial parameters #1

ankitchandraiaf opened this issue Jan 15, 2023 · 1 comment

Comments

@ankitchandraiaf
Copy link

I am trying to implement this model. I have an actual throttle with me. What position should i use of throttle to begin with

@flight-test-engineering
Copy link
Owner

Hi,

Thanks for reaching out.

There is no definite position for the throttle on the joystick, as explained in the comments of function get_joy_inputs.
The code will read whatever position the throttle is in the start of the simulation and will adjust (add/subtract) as you move the throttle when the simulation is running.
So, don't start at full throttle, nor at idle. Somewhere in between works for me.

Let me know if this helps and if you succeed running it.

Cheers

def get_joy_inputs(joystick, U_trim, fr):
    '''
    function that will read joystick positions and adjust controls:
    1. joy will change controls on top of trim point
    2. trim settings (buttons) will change trim point
    3. engine does not have trim function, but depending on
    button pressed, throttle should be commanded left/right/both

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

2 participants