-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
By default, JSBSim throws an exception when it fails to trim the aircraft in a stable configuration. You could either:
If you pick either of the 2 first options, you might see the aircraft spawn in an unstable condition (either below the ground or diving or turning, etc.) |
Beta Was this translation helpful? Give feedback.
-
In particular here is the default trim logic from the Unreal plugin. Looking at the code and your output messages you can see that the Unreal plugin continues to run after a trim failure, just reporting the message you noted. |
Beta Was this translation helpful? Give feedback.
-
As I showed with the code snippet above the Unreal plugin attempts to trim the aircraft, either on the ground or in the air. If the trim fails, then you will see this error message. A trim solution is not guaranteed, see @bcoconni's reply above for some tips in terms of increasing the chances of finding a valid trim solution. Now I noticed in your screenshot above that you're trying to use a helicopter model, the ah1s. I'm not sure how well if at all the trim code in JSBSim works with helicopters in flight. So, I'd suggest first trying it out on the ground, I'm more confident, I haven't tested it myself yet, that the ground trim would succeed. |
Beta Was this translation helpful? Give feedback.
-
No, just that trying to trim a helicopter in flight when you startup will always fail. So, for now you would always need to startup with the helicopter on the ground. You will also need to confirm within the plugin that the you have the required input mappings, in particular do you have an input mapping for jsbsim/aircraft/ah1s/Systems/rotor_control.xml Lines 68 to 72 in 6cd0291 |
Beta Was this translation helpful? Give feedback.
-
Nobody said helicopters were easy to fly 😉 |
Beta Was this translation helpful? Give feedback.
I guess we should open an issue to log the fact that the trim algorithm needs some adaptation for helicopters.