Hello, I want to make request same as 907 (measuring displacement) but with functions:
My request using functions:
To obtain same translational displacement for F2 i had to add minus sign:
Problem is with angles. Yaw angle values are perfectly same:
Roll angles are not perfectly same:
Biggest difference is in pitch angle. To have same sign of values i have used minus in F7 function of request:,
Why are pitch angles so different? Is there some problem in my function request?
Also what I do not understand is why subrutine 907 for longitudinal displacement is giving positive values (i think vehicle is going in minus direction of GCS).
Without the source code of req907 that'll be difficult to say, but other codes I ran across use the fortran utility SYSARY with the option DISP to fill a result array and then return that to ADAMS.
The solver documentation states that SYSARY/DISP evaluates DX/DY/DY/PSI/THETA/PHI which is exactly what you tried.
But you also noticed that the results were negative.
So in your case I'd first try to invert i/j in the function expressions instead of negating the results.
Without the source code of req907 that'll be difficult to say, but other codes I ran across use the fortran utility SYSARY with the option DISP to fill a result array and then return that to ADAMS.
The solver documentation states that SYSARY/DISP evaluates DX/DY/DY/PSI/THETA/PHI which is exactly what you tried.
But you also noticed that the results were negative.
So in your case I'd first try to invert i/j in the function expressions instead of negating the results.