Hardware in the Loop (HIL) Simulation on OS X

Do you know how to link the Pixhawk to X-Plane?

It looks like the directions for Hardware in the Loop simulations haven’t been updated in awhile, and I could use your help in figuring out how to set this up.

Specifically, the method of connecting the Pixhawk/APM with X-Plane in OS X isn’t described beyond a link to this Perl script (X-Plane.pl). With a PixHawk connected via USB (and in HIL_MODE=1), and X-Plane 10 running, the Perl script gives an error on line 59 that seems related to a hard-coded serial port number. The port is defined as “my $ser_port = 5331;” where I was expecting a port number something like /dev/tty.usbmodem1. 

Is there a way to link the Pixhawk to X-Plane via APM Planner? Maybe under Communication > Add Link?

Does this Perl script use a different port naming convention? What’s the best way to figure out the port number for the PIxhawk?

Anyway, if you could steer me in the right direction I’d sure appreciate it!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    APM Planner does not have support to configure the HIL environment. We use SITL for development work.

    The last time I ran HIL was 2012.
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
yesterday
DIY Robocars via Twitter
yesterday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
DIY Robocars via Twitter
Excellent use of cardboard instead of 3D printing! https://twitter.com/Ingmar_Stapel/status/1324960595318333441
Nov 7
DIY Robocars via Twitter
RT @chr1sa: We've got a record 50 teams competing in this month's @DIYRobocars @donkey_car virtual AI car race. Starting today at 10:00am…
Nov 7
DIY Robocars via Twitter
Nov 6
DIY Robocars via Twitter
RT @a1k0n: Car's view, using a fisheye camera. The ceiling light tracking algorithm gave me some ideas to improve ConeSLAM, and having grou…
Nov 5
More…