Modeling of VTOl fixed UAV #968
Replies: 5 comments 3 replies
-
Yes, you can check the FDM of DJI F450 quadcopter in https://github.com/JSBSim-Team/jsbsim/tree/master/aircraft/F450 |
Beta Was this translation helpful? Give feedback.
-
@prashant19012002 where did you download/install your JSBSim from? I'm guessing you have a very old version. I'm using the current JSBSim repo source, built it locally and was able to run the script without any issues. Note it executes a ground trim. .C:\source\jsbsim> .\Debug\JSBSim.exe --script=scripts\Test_F450_Launch.xml
...
....
Body Rates (relative to given frame, expressed in body frame)
ECI: 4.348681968941312e-20, -0.002968449199997751, -0.002940172240112663 (p,q,r in deg/s)
ECEF: 0, 0, 0 (p,q,r in deg/s)
---- JSBSim Execution beginning ... --------------------------------------------
Repeating Notify (Event 10) executed at time: 0.002000
fcs/ScasEngage = 0.000000
fcs/throttle-cmd-norm = 0.000000
fcs/throttle-cmd-norm[1] = 0.000000
fcs/throttle-cmd-norm[2] = 0.000000
fcs/throttle-cmd-norm[3] = 0.000000
propulsion/engine[0]/propeller-rpm = 0.000000
propulsion/engine[1]/propeller-rpm = 0.000000
propulsion/engine[2]/propeller-rpm = 0.000000
propulsion/engine[3]/propeller-rpm = 0.000000
propulsion/engine[0]/thrust-lbs = 0.000000
propulsion/engine[1]/thrust-lbs = 0.000000
propulsion/engine[2]/thrust-lbs = 0.000000
propulsion/engine[3]/thrust-lbs = 0.000000
position/h-agl-ft = 935.731957
velocities/vc-kts = 0.000000
attitude/phi-rad = 0.000000
attitude/theta-rad = 0.000000
attitude/psi-rad = 1.570796
Start: Tuesday October 03 2023 11:46:10 (HH:MM:SS)
Ground Trim
Trim successful
Trim Results:
Altitude AGL: 0.49 wdot: 7.28e-04 Tolerance: 1e-03 Passed
Pitch Angle: -0.01 qdot: -4.34e-05 Tolerance: 1e-04 Passed
Roll Angle: -0.00 pdot: 3.82e-05 Tolerance: 1e-04 Passed
Trim (Event 1) executed at time: 0.004000
position/h-agl-ft = 0.494346
GEAR_CONTACT: 0.004000 seconds: Front_Center 1
GEAR_CONTACT: 0.004000 seconds: Aft_Left 1
GEAR_CONTACT: 0.004000 seconds: Aft_Right 1
Repeating Notify (Event 10) executed at time: 1.000000
fcs/ScasEngage = 0.000000
fcs/throttle-cmd-norm = 0.000000
fcs/throttle-cmd-norm[1] = 0.000000
fcs/throttle-cmd-norm[2] = 0.000000
fcs/throttle-cmd-norm[3] = 0.000000
propulsion/engine[0]/propeller-rpm = 0.000000
propulsion/engine[1]/propeller-rpm = 0.000000
propulsion/engine[2]/propeller-rpm = 0.000000
propulsion/engine[3]/propeller-rpm = 0.000000
propulsion/engine[0]/thrust-lbs = 0.000000
propulsion/engine[1]/thrust-lbs = 0.000000
propulsion/engine[2]/thrust-lbs = 0.000000
propulsion/engine[3]/thrust-lbs = 0.000000
position/h-agl-ft = 0.494346
velocities/vc-kts = 0.000031
attitude/phi-rad = 0.000000
attitude/theta-rad = -0.005774
attitude/psi-rad = 1.570796
GEAR_CONTACT: 1.134000 seconds: Aft_Left 0
GEAR_CONTACT: 1.134000 seconds: Aft_Right 0
GEAR_CONTACT: 1.138000 seconds: Front_Center 0
Repeating Notify (Event 10) executed at time: 2.000000
fcs/ScasEngage = 1.000000
fcs/throttle-cmd-norm = 0.500000
fcs/throttle-cmd-norm[1] = 0.500000
fcs/throttle-cmd-norm[2] = 0.500000
fcs/throttle-cmd-norm[3] = 0.500000
propulsion/engine[0]/propeller-rpm = 6001.089805
propulsion/engine[1]/propeller-rpm = 6000.600891
propulsion/engine[2]/propeller-rpm = 6001.089660
propulsion/engine[3]/propeller-rpm = 6000.601036
propulsion/engine[0]/thrust-lbs = 1.025826
propulsion/engine[1]/thrust-lbs = 1.026302
propulsion/engine[2]/thrust-lbs = 1.025826
propulsion/engine[3]/thrust-lbs = 1.026302
position/h-agl-ft = 4.819809
velocities/vc-kts = 5.832503
attitude/phi-rad = -0.000013
attitude/theta-rad = 0.046461
attitude/psi-rad = 1.570796
.....
.....
Repeating Notify (Event 10) executed at time: 29.002000
fcs/ScasEngage = 1.000000
fcs/throttle-cmd-norm = 0.489997
fcs/throttle-cmd-norm[1] = 0.489996
fcs/throttle-cmd-norm[2] = 0.490004
fcs/throttle-cmd-norm[3] = 0.490004
propulsion/engine[0]/propeller-rpm = 6012.074369
propulsion/engine[1]/propeller-rpm = 6012.070768
propulsion/engine[2]/propeller-rpm = 6012.153097
propulsion/engine[3]/propeller-rpm = 6012.150476
propulsion/engine[0]/thrust-lbs = 0.806391
propulsion/engine[1]/thrust-lbs = 0.806391
propulsion/engine[2]/thrust-lbs = 0.806418
propulsion/engine[3]/thrust-lbs = 0.806418
position/h-agl-ft = 598.069851
velocities/vc-kts = 18.232151
attitude/phi-rad = -0.000040
attitude/theta-rad = 0.047818
attitude/psi-rad = 1.570800
End: Tuesday October 03 2023 11:46:13 (HH:MM:SS)
(base) PS C:\source\jsbsim> |
Beta Was this translation helpful? Give feedback.
-
I was trying to add VTOL capabilities to a Cessna C310R . The way I found to solve this was adding a section in <force name="vtol_force" frame="INERTIAL">
<location unit="IN">
<x> 0 </x>
<y> 0 </y>
<z> 0 </z>
</location>
<direction>
<x>1</x>
<y>0</y>
<z>0</z>
</direction>
</force> The upper lift worked like charm. But the aircraft ended up pointing upwards, I guess because of the aerodynamics. My question is: How can I model this so that the aircrafts maintains its attitude, and doesn't point upwards like a rocket? |
Beta Was this translation helpful? Give feedback.
-
Not really due to aerodynamics. Look at the location at which you've positioned this, basically on the nose of the aircraft. So there is a torque given by the force multiplied by the distance from the nose to the cg. |
Beta Was this translation helpful? Give feedback.
-
Take a look at - https://jsbsim-team.github.io/jsbsim-reference-manual/user/concepts/frames-of-reference/ The empty weight CoG is defined in the FDM, once fuel etc. is added the actual CoG will differ, you can query it via the property tree and/or depending on how you're running JSSim it's also printed out to the console. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to JSBSim i tried it with few fuel based models. but when i tried to run it with a electric based UAV i am not able to test for any scripts. are their any electric aircraft xml files along with scripts files for cruise condition or any other which i can use as a reference for my model.
It would be very helpful if someone helps me with this.
Beta Was this translation helpful? Give feedback.
All reactions