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 Drones via Twitter
21 hours ago
DIY Robocars via Twitter
RT @Heavy02011: @diyrobocars : A Home-brew computer club* for Connected Autonomous Driving on Jan 23rd, 2021 https://www.meetup.com/Connected-Autonomous-Driving/events/275728684/ #Meetu…
21 hours ago
DIY Robocars via Twitter
21 hours ago
David Hori liked Isabella Domi's profile
Wednesday
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ Autonomous Driving Assembly at #rC3. join us at https://rc3.world/rc3/assembly/diyrobocars-f1tenth/ ⁦@f1tenth⁩ ⁦@DAVGtech⁩ ⁦@DWalmroth⁩…
Monday
DIY Robocars via Twitter
RT @chr1sa: New car designs coming for our next @DIYRobocars @donkey_car virtual race on the 23rd. Choose any one you want at race time Le…
Monday
DIY Robocars via Twitter
RT @RoboticMasters: Thanks to @EllerbachMaxime and the Sydney Uni Capstone Students the @donkey_car @diyrobocars simulator is getting a ma…
Monday
DIY Robocars via Twitter
Jan 6
DIY Robocars via Twitter
Dec 28, 2020
DIY Robocars via Twitter
An interesting line-following simulator to use with with your robocars: https://github.com/ron-grant/LFS
Dec 23, 2020
DIY Robocars via Twitter
Dec 23, 2020
DIY Robocars via Twitter
An improved version of the @IntelAIResearch OpenBot: https://diyrobocars.com/2020/12/14/an-improved-version-of-the-intel-openbot/
Dec 14, 2020
DIY Drones via Twitter
An improved version of the Intel OpenBot https://ift.tt/2KkHT8Q
Dec 14, 2020
DIY Robocars via Twitter
Dec 10, 2020
DIY Robocars via Twitter
RT @KN_Richardson: Delivery 📦😬 Early xmas present from @ccbdcdt ! Sims ready, will put h/w together over Christmas break. Didn’t need to mo…
Dec 7, 2020
DIY Robocars via Twitter
RT @RoboticMasters: Did we mention there's new car models in the #donkeycar simulator too? Here is an RB16 from team @redbull @donkey_ca…
Dec 7, 2020
More…