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

Chris Anderson liked Zara Mae Pickering's profile
May 21
Azjeg liked Azjeg's profile
Apr 27
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
More…