Connection APM2.6 to Raspberry Pi 3 with Mavproxy

Early, I worked with APM2.6 with Raspberry Pi B+, Raspberry Pi A+ and all works fine.

Now I try to connect APM2.6 to Raspberry Pi 3 and Raspberry Pi Zero and I obtaned the next problem:

1) I tryed to connect with usb port and command

sudo mavproxy.py --master=/dev/ttyACM0 --baudrate=115200 --out=127.0.0.1:5005 --cmd="wp load mission.txt"

2) I tryed to connect with telem port and command

sudo mavproxy.py --master=/dev/ttyAMA0 --baudrate=57600 --out=127.0.0.1:5005 --cmd="wp load mission.txt"

and

sudo mavproxy.py --master=/dev/ttyS0 --baudrate=57600 --out=127.0.0.1:5005 --cmd="wp load mission.txt"

And allways I see next result:

pi@raspberrypi:~/f1/go $ sudo mavproxy.py --master=/dev/ttyACM0 --baudrate=115200 --out=127.0.0.1:5005 --cmd="wp load mission.txt"

Connect /dev/ttyACM0 source_system=255

Loaded 5 waypoints from mission.txt

Log Directory:

Telemetry log: mav.tlog

MAV> Waiting for heartbeat from /dev/ttyACM0

So, mavproxy writes, that waypoints are loaded! But, when I check it using Mission Planner I can't see points. It writes, that points are loaded, but they are not.

Help me please to find the solution! Thank you!

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

Join diydrones

Email me when people reply –

Replies

  • Also I think you're trying to access the wrong device - ttyACM0 isn't correct for raspberry.  Try ttyAMA0 or ttyS0.  Ideally you should disable the bluetooth and use AMA0 as detailed in the link you've posted or here:

    http://discuss.ardupilot.org/t/connecting-raspberry-pi-to-pixhawk/9784

  • MAV> Waiting for heartbeat from /dev/ttyACM0

    ^^ This means you haven't got any connection to the FC yet.  'Loaded 5 waypoints' just means mavproxy has loaded them from the file mission.txt on your disk, not that it's loaded them to the FC.

  • Stephen, thank you for answer, but

    when I try to upload mission inside my python script, it's looking like this:

    ...

    child = pexpect.spawn("sudo mavproxy.py --master=/dev/ttyACM0 --baudrate=115200 --out=127.0.0.1:5005")

    ..waiting for heartbeat

    child.send('wp load /path_to/mission.txt\n')

    it is not working too,

    but with RPi A+ and RPi B+ with Raspbian Wheezy it works fine.

    Here is thread about same problem, but they hasn't find solution, only downgrade from RPi3 to RPi2 =)

    http://diydrones.com/forum/topics/mavproxy-ignores-input?id=705844%...

  • It's a bug in MAVProxy - you can't load waypoints via the --cmd="wp load mission.txt".

    There's a bug report at https://github.com/ArduPilot/MAVProxy/issues/142

    cmd not seeming to work for wp load · Issue #142 · ArduPilot/MAVProxy
    I have tried on 1.4.11(win), 1.3.13(win) and linux (latest) and I can't seem to get this to work. The command I have tried is "--cmd="wp load [fi…
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Jetsonhacks: And I helped with the course! JetBot, JetBot, happy little JetBot! JetBot ... GO! Meet the Jetson Specialists Inspiring a…
17 hours ago
DIY Robocars via Twitter
RT @a1k0n: Designed RPi + camera mounts + new bumper for the new car. Fits great on the car first try, except my longest camera cable doesn…
17 hours ago
gotham liked gotham's profile
yesterday
DIY Robocars via Twitter
RT @RoboticMasters: Monaco GP Circuit in the Donkey Sim (coming soon). Including buildings, tunnel and all! https://github.com/robotics-masters/sim-donkeycar-f1/tree/f1-tracks @diyr…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: Here are the details of #AWSDeepRacer finals: https://blog.deepracing.io/2020/12/01/aws-deepracer-league-finals-2020-round-1-schedule/ #awsreinvent2020 #AWSreInvent https://t.co/ovqsjp8V…
Wednesday
DIY Robocars via Twitter
RT @breadcentric: #AWSDeepRacer League #awsreinvent2020 Open race is on Dec 1st - Dec 31st in three categories, 15 DeepRacer Evo (with LIDA…
Wednesday
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…
Monday
DIY Robocars via Twitter
Monday
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
More…