Modelling of a electric UAV? #969
Replies: 3 comments 7 replies
-
Does the trim succeed? |
Beta Was this translation helpful? Give feedback.
-
Hmm, something going wrong with the trim I suspect. For example the trim routine should print out the trim results, whether it's sucessful or not. For example when running the C:\source\jsbsim> .\Debug\JSBSim.exe --script=scripts\737_cruise.xml
....
....
Start: Monday September 25 2023 16:10:21 (HH:MM:SS)
Repeating Notify (Event 2) executed at time: 5.008133
propulsion/engine[0]/n2 = 60.000000
propulsion/engine[1]/n2 = 60.000000
propulsion/engine[0]/thrust-lbs = 381.260934
propulsion/engine[1]/thrust-lbs = 381.260934
propulsion/engine[0]/thrust-N = 1695.933275
propulsion/engine[1]/thrust-N = 1695.933275
position/h-agl-ft = 29831.535884
velocities/vc-kts = 282.517887
velocities/vc-fps = 476.836514
velocities/vt-fps = 741.851429
attitude/phi-rad = -0.000667
attitude/theta-rad = -0.093210
attitude/psi-rad = 3.927292
Full Trim
Trim successful
Trim Results:
Angle of Attack: 2.28 wdot: 1.15e-04 Tolerance: 1e-03 Passed
Throttle: 0.93 udot: -6.26e-05 Tolerance: 1e-03 Passed
Pitch Trim: -0.17 qdot: -1.57e-10 Tolerance: 1e-04 Passed
Roll Angle: -0.14 vdot: -1.55e-10 Tolerance: 1e-03 Passed
Ailerons: -0.00 pdot: -1.16e-08 Tolerance: 1e-04 Passed
Rudder: -0.00 rdot: 5.13e-19 Tolerance: 1e-04 Passed Also take a look at your output, the engine doesn't appear to be running and isn't producing any thrust. |
Beta Was this translation helpful? Give feedback.
-
What issue are you having debugging? You should be able to set breakpoints in the JSBSim source code where the trim code is executed to see what information you see in the debugger. Also in the code to set the engine running to try and see why the engine doesn't appear to be running and producing thrust. P.S |
Beta Was this translation helpful? Give feedback.
-
Sorry i am new to JSBSim and excuse me if this problem seems dumb. i tried to build a electric UAV model(named as test aicraft) and i tried to run it for various cases specifically a full trim case here. for some reasons i am not getting the output correctly even if i want it to run for 100s it just stops at 2 or 5 sec. (the scripts file is named as cruise_script)
test_aircraft.zip
Beta Was this translation helpful? Give feedback.
All reactions