-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modifications for ArduPilot to work with the latest JSBSim #8710
Conversation
does the lock-step scheduling work? |
Good point. It seems I've "fixed" the connection, but the functionality is not quite there yet. I have replaced the "step" with "iterate 1", which (I think) has the same functionality. see "iterate" at https://github.com/JSBSim-Team/jsbsim/blob/master/src/input_output/FGInputSocket.cpp The simulation still doesn't really do what is expected - any advice you can give me would be appreciated, seeing as you made the original modifications. |
@WillemEerland I noticed the following in // Check if increment then hold is on and take appropriate actions if it is
// Iterate is not supported in realtime - only in batch and playnice modes
FDMExec->CheckIncrementalHold(); What mode are you running JSBSim in? |
I haven't seen the details of the hacks yet for the previous lock-step scheduling, but coincidentally we are busy discussing a pull request for JSBSim for lock-step scheduling. Take a look at the discussion so far - JSBSim-Team/jsbsim#72 So maybe this pull request will result in an official lock-step implementation that could be used with Ardupilot? |
@seanmcleod the "step" mode which supports the current lock-step scheduling in ArduPilot is here: |
@tridge @seanmcleod Thank you both your comments - I'm going to close this pull request for now, I'll submit a new request when I have the ArduPilot - JSBSim (latest version) SITL simulation working properly. (to be continued) |
This modifications allows using the latest JSBSim code
the tutorial to setup SITL ( http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html#setting-up-sitl-on-linux ) points to www.github.com/tridge/jsbsim which uses the JSBSim code from 2012
these modifications allow the use of the latest JSBSim code found at https://github.com/JSBSim-Team/jsbsim and involves