JSBSim yielding odd results #1027
Closed
Jolyon-S
started this conversation in
Support requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks,
I'm working on a setup with ArduPilot SITL and JSBSim, and I've found that the outputs from each step of JSBSim seem at times pretty weird.
For reference, the model I'm running with is the Rascal110 - I'm not dead set on this model in particular though, as I just want to simulate an RC plane (i.e. one that has four PWM controls - aileron, elevator, throttle, rudder, assuming I'm reading the outputs from ArduPilot correctly).
My setup involves:
dt = 0.001
, and I've runDoTrim(2)
beforehand but no other initial setup such as setting initial conditions)this->fdmex.GetPropagate()...
, using the ArduPilot JSON API).Then, my observations are:
GetPropagate()->GetLocation(1)
stays the same throughout my simulation, even while the other values change (as I'd expect). I doubt my aircraft is so precise that it flies on such a perfect straight line; perhaps this is part of why this is failing?Does anyone have any idea what is causing my peculiar simulation results? As mentioned, if the suspicion is the model I'm open to trying alternatives, so long as they're relatively simple to fly (ideally with roughly the same 4 inputs).
Beta Was this translation helpful? Give feedback.
All reactions