flight-test-engineering / PSim-RCAM

Python implementation of non-linear 6DOF GARTEUR RCAM aircraft flight dynamics model
GNU General Public License v3.0
15 stars 2 forks source link

Initial parameters #1

Open ankitchandraiaf opened 1 year ago

ankitchandraiaf commented 1 year ago

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 commented 1 year ago

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