No Control Input but the Altitude comes to minus infinity!!! (JSBSim with Matlab) #610
Replies: 3 comments 9 replies
-
This topic has been moved to JSBSim Discussions as per the issue template statement: Support for this topic will therefore continue within this discussion. Thanks for your understanding. |
Beta Was this translation helpful? Give feedback.
-
By default, JSBSim automatically sets the ground at altitude zero. I'd guess that either you are using models that have no contacts and that the aircraft gears are up which prevents JSBSim from detecting contact with the ground. |
Beta Was this translation helpful? Give feedback.
-
And looking at the SimuLink graph, yes it looks like the altitude starts off at 0 and then it just sinks into the ground. As @bcoconni asked, have you checked the model for <ground_reactions>
<contact type="BOGEY" name="NOSE_LG">
<location unit="IN">
<x> 396 </x>
<y> 0 </y>
<z> -206 </z>
</location>
<static_friction> 0.8 </static_friction>
<dynamic_friction> 0.5 </dynamic_friction>
<rolling_friction> 0.02 </rolling_friction>
<spring_coeff unit="LBS/FT"> 22000 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 87302.6 </damping_coeff>
<max_steer unit="DEG"> 5 </max_steer>
<brake_group> NONE </brake_group>
<retractable>1</retractable>
</contact>
The 747 model you're using only has ground contacts for the landing gear, so if they are retracted (not deployed) then there will be no ground reaction and the aircraft will fall through the earth, which is what it looks like is happening to you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear JSBSim Pro!!!
I've met a problem when using JSBSim_Sfunction in matlab simulink! When I take no control inputs (Throttle, Aileron, Elevator, Rudder = 0), the altitude comes to minus infinity ($$ h \to -\infty $$). I tested with B747 and c172p and met this error. I think there might be no ground floor (ground floor at minus infinity). I saw Prof.Agostino can run JSBSim in Matlab simulink smoothly. Can I set altitude of ground floor at 0.0, so that altitude always equals to zero for above situation!
Please help me for this problem. Many thanks!!!
Beta Was this translation helpful? Give feedback.
All reactions