Servers by jDrones

Roadblock integrating a new flight sim into SITL

(peterbraswell) #1

I’m really hoping somebody familiar with the codebase can help me.

I’ve got most of the stuff working, however the simulation fails to initialize (mavlink). I’m basing my integration of SilentWings ( on the JSBSim module in libraries/SITL/JSBsim.cpp.

I’m doing something wrong or some piece is missing. I don’t understand completely what the JSBSim executable is doing. I see simulation data coming in, which I’ve replicated with data from SilentWings. I’ve set up a port to listen for the RC output from the simulation which seems to be working but the indications from mavlink aren’t consistent with what I see with JSBSim.

My simulation seems to get stuck in the calibrating gyro mode. I see two asterisks after that message and then a series of ‘no link’ messages in mavlink despite my simulation continuing to run.

I feel like I’m close, yet so far away!

Is there any good pieces of documentation that explain the pieces that need to be implemented or more detail about going into how to integrate a new flight sim? Is there a better example that I should be following besides JSBSim?

Many thanks to the brain trust!,

(Andrey Kolobov) #2

Hello Peter,

Have you had any luck with the Silent Wings SITL since this post?

Having used X-Plane for testing soaring algorithms for a while now, I more than appreciate the inadequacy of its thermal simulations, particularly as far as thermal placement and lifecycle is concerned, and was looking at Silent Wings when I discovered this piece about your efforts in the same direction.

In case you are still working on this, I’d be interested in learning how far you’ve gotten and in helping you investigate the initialization issues you’ve described.



(tridge) #3

@peterbraswell I only just saw this msg, sorry. I see there is silentwings support in frigatebird now:

would you like that to be integrated back into ArduPilot master? I’d be happy to look at a PR for that, or I could try and bring it in myself.