Arduino DUE to recieve MAVLink messages

91 views
Skip to first unread message

Sarath Chandran M

unread,
Oct 26, 2022, 7:15:21 AM10/26/22
to MAVLink
Hi All

I am working on a project to receive MAVLink messages from a PIXhawk. Is there anyone who worked on a similar project or has any pointers for me? One code which I found was written for Arduino Nano which is an AVR board and DUE is an ARM board, which is causing issues due to changes in architecture. 

I would really appreciate it if someone could provide some pointers. 

Thanks & regards
Sarath

Sarath Chandran M

unread,
Oct 26, 2022, 7:20:53 AM10/26/22
to MAVLink
++

fatal error: avr/io.h: No such file or directory

This is one main error resulting due to this change in architecture. 

Spiros Makris

unread,
Nov 1, 2022, 3:42:03 AM11/1/22
to mav...@googlegroups.com
Hello Sarath,
The best way to do it is to head over to the official mavlink GitHub https://github.com/mavlink/mavlink-devguide/tree/master/en and use the official C/C++ libraries and guide. The official C/C++ parser is basically generated using "platform agnostic" C, letting you include it in any project without any dependencies missing. 

Spiros

--
Sie erhalten diese Nachricht, weil Sie in Google Groups E-Mails von der Gruppe "MAVLink" abonniert haben.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an mavlink+u...@googlegroups.com.
Wenn Sie diese Diskussion im Web verfolgen möchten, rufen Sie https://groups.google.com/d/msgid/mavlink/fbf6c74f-f5bb-488a-a5f0-42b1bf832d9bn%40googlegroups.com auf.

Hamish Willee

unread,
Nov 1, 2022, 8:49:51 PM11/1/22
to MAVLink
Good advice from Spiros there. 

Also, depending on what you want to achieve you might want to look at MAVSDK. The reason being that most generated MAVLink libraries just send and read individual messages, while MAVSDK implements more complex protocols involving sequences of messages.
Reply all
Reply to author
Forward
0 new messages