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 @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
10 hours ago
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
yesterday
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Wednesday
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord: https://discord.gg/EPsZHkg9Nx) https://t.co/PNDewvJdrb
Wednesday
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Wednesday
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20
DIY Robocars via Twitter
Incredible training performance with Donkeycar https://www.youtube.com/watch?v=9yy7ASttw04
Nov 9
DIY Robocars via Twitter
RT @JoeSpeeds: Sat Nov 6 Virtual DonkeyCar (and other cars, too) Race. So bring any car? @diyrobocars @IndyAChallenge https://t.co/nZQTff5…
Oct 31
DIY Robocars via Twitter
RT @JoeSpeeds: @chr1sa awesomely scary to see in person as our $1M robot almost clipped the walls as it spun at 140mph. But it was also awe…
Oct 29
DIY Robocars via Twitter
RT @chr1sa: Hey, @a1k0n's amazing "localize by the ceiling lights" @diyrobocars made @hackaday! It's consistently been the fastest in our…
Oct 25
DIY Robocars via Twitter
RT @IMS: It’s only fitting that @BostonDynamics Spot is waving the green flag for today’s @IndyAChallenge! Watch LIVE 👉 https://t.co/NtKnO…
Oct 23
DIY Robocars via Twitter
RT @IndyAChallenge: Congratulations to @TU_Muenchen the winners of the historic @IndyAChallenge and $1M. The first autonomous racecar comp…
Oct 23
DIY Robocars via Twitter
RT @JoeSpeeds: 🏎@TU_Muenchen #ROS 2 @EclipseCyclone #DDS #Zenoh 137mph. Saturday 10am EDT @IndyAChallenge @Twitch http://indyautonomouschallenge.com/stream
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: Another incident: https://t.co/G1pTxQug6B
Oct 23
DIY Robocars via Twitter
RT @DAVGtech: What a great way to connect why @diyrobocars community is so valuable and important! Have to start somewhere @IndyAChallenge…
Oct 23
More…