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 @chr1sa: The next @DIYRobocars virtual AI race is tomorrow morn at 9:00am PT. You can watch live on Twitch https://www.meetup.com/DIYRobocars/events/275268196/
17 hours ago
DIY Robocars via Twitter
New version of Intel OpenBot! This resolves many of the issues with the first version, including a much smoother tr… https://twitter.com/i/web/status/1352395636369313798
yesterday
DIY Drones via Twitter
Using ArduRover with an RTK GPS https://ift.tt/2N9I3RO
Tuesday
DIY Drones via Twitter
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
Jan 15
DIY Robocars via Twitter
Jan 15
DIY Drones via Twitter
Jan 14
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…
Jan 14
DIY Robocars via Twitter
Jan 14
David Hori liked Isabella Domi's profile
Jan 12
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⁩…
Jan 11
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…
Jan 11
DIY Robocars via Twitter
RT @RoboticMasters: Thanks to @EllerbachMaxime and the Sydney Uni Capstone Students the @donkey_car @diyrobocars simulator is getting a ma…
Jan 11
DIY Robocars via Twitter
Jan 6
DIY Robocars via Twitter
Dec 28, 2020
More…