-
Notifications
You must be signed in to change notification settings - Fork 1.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
SITL (x86) Target #8731
SITL (x86) Target #8731
Conversation
F**king awesome!!! Thanks Andi!!! |
Nice! |
Can someone take a look at the "Github actions"? |
If I apply the .diff from your patchset locally, it fails in the same way as the CI:
|
@stronnag |
I would propose to integrate this with INAV HITL plugin. So usage scenario would be:
Then a lot of code from this submit will not be required (new fake sensors, direct X-Plane and Realflight communication, exernal OSD application). A lot of work has been done for HITL support/X-Plane plugin already; direct X-plane communication dublicates it. The only requirement is to compile executable for x86 and expose UARTs as TCP ports. Executable should work as a Server, and X-Plane plugin/Reaflight app/whatever as Client. Server should not contain any X-Plane/RealFlight related code. Communication will be done through single MSP connection (TCP port) using MSP_SIMULATOR command (like HITL does). Additionally X-Plane plugin would send MSP commands for Receiver Type: MSP, using values from RC controller connected to PC. As for RealFlight support, it would be nice to have separate executable with GUI, which provide menu options similar to X-Plane plugin. As I understand, it is not possible to integrate neither additional menu options nor OSD into Realflight except Window overpainting. |
Yes, SITL / HITL has some code duplications. That's exactly what I thought at the beginning and wanted to handle the communication based on the HITL MSP command. But a big problem arose: The initialisation and the runtime calibration. There are also more simulators that can be integrated: Flight Gear /JSBSim, Silent wings, Gazebo,...). A lot of code would have to be written twice. |
This reverts commit f330bdd.
- Add magnetometer and rnagefinder - Add joystick interface - Configuator integration - Update docs
Well fsck me. Builds on gcc 12.2.1, working with configurator. So there was no compiler bug? |
Terminal 1:
Terminal 2:
Terminal 1:
|
Then, (
This can't possibly work ....
Somewhat impressed. Opens just fine in the configurator. Nice, nice nice. |
btw. It would be really nice if the SITL could re-spawn itself on |
@stronnag
No idea why GCC is hung up on it. Segmentation fault error: |
It was pulled from your repo about 30 minutes ago.
|
Yup, I have set this in the Configurator integartion. I'm still waiting for feedback from the beta testers, then the PR for the configurator will come. This is what it looks like: https://www.youtube.com/watch?v=VyIAI__GuAg |
Ah, there's the problem. |
I was thinking more of reboot from CLI |
But more awesomeness ... this is so nearly a general implementation vice configurator / x-plane Let's run it with
|
The crash looks like a firmware bug. Not even
|
@stronnag |
OK, I can wrap it in a |
It's quiet possible to re-exec the SITL on reboot (rather than exit). Expect a PR soon with some other small stuff as well.
Some of which is to better support this little toy |
@Scavanger please resolve conflicts |
INAV on x86 Hardware.
Fully usable, at least for Wings. Copter support will be added later, the "Fake compass" is still missing.
The following simulators are supported:
Tested on Windows and Linux.
The usage is still a bit cumbersome, an integration into the configurator would be nice.
Extra offline tab with UI for command line options?