Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix library #2

Open
rafaelmaeuer opened this issue Aug 9, 2020 · 6 comments · May be fixed by #4
Open

Fix library #2

rafaelmaeuer opened this issue Aug 9, 2020 · 6 comments · May be fixed by #4

Comments

@rafaelmaeuer
Copy link

Hey and thanks for this library.

I was trying to get it work, but Arduino complains about missing the library although it was correctly installed. It seems that PixhawkArduinoMAVLink.h, and PixhawkArduinoMAVLink.cpp need to be inside of src folder. All other imports need to be changed accordingly. This way I was able to get it work.

@yunjae-Na9025
Copy link

Hi @rafaelmaeuer i try to use this library but some problem has cam out
i have experienced your problem ,so i check issue. i did what you do but compile errors continuously show it's face
my error message is this

In file included from C:\Users\Yunjae\Documents\Arduino\libraries\PixhawkArduinoMAVLink-master\examples\Acceleration\Acceleration.ino:4:0:

C:\Users\Yunjae\Documents\Arduino\libraries\PixhawkArduinoMAVLink-master\src/PixhawkArduinoMAVLink.h:10:39: fatal error: src/ardupilotmega/mavlink.h: No such file or directory

#include <src/ardupilotmega/mavlink.h>

but i already add library and also have mavlink.h file on the right directory
could you save me from this problem??

thank you

@wvthoog
Copy link

wvthoog commented Jun 26, 2021

@yunjae-Na9025

edit PixhawkArduinoMAVLink.h like so

#include "common/mavlink.h"
#include <checksum.h>
#include <mavlink_types.h>
#include <protocol.h>
#include <Arduino.h>
#include <HardwareSerial.h>

@geosmall
Copy link

geosmall commented Sep 25, 2021

Confirmed rafaelmaeuer issue and also fix from Aug 9, 2020. With these changes it at least compiles. Still need to test on hardware (STM32 target in this case).

Fix:

1.) Relocated PixhawkArduinoMAVLink.h and PixhawkArduinoMAVLink.cpp to src folder

2.) Edited PixhawkArduinoMAVLink.h

From:

#include "src/ardupilotmega/mavlink.h"
#include <src/checksum.h>
#include <src/mavlink_types.h>
#include <src/protocol.h>
#include <Arduino.h>
#include <HardwareSerial.h>

To:

#include "ardupilotmega/mavlink.h"
#include "checksum.h"
#include "mavlink_types.h"
#include "protocol.h"
#include <Arduino.h>
#include <HardwareSerial.h>

@jogomez74
Copy link

Does any one know why this library do not work? I'm stiil have the same problem. The last one version does not working

@zvikaf
Copy link

zvikaf commented Jan 11, 2023

did what @geosmall suggested and the program did compile - delete the "src/"

@jappyjan jappyjan linked a pull request Dec 22, 2023 that will close this issue
@wxy-2012
Copy link

I was able to compile the program successfully, but I couldn't read the xyz data。
it display this“Request sent! Now you are ready to recieve datas...”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants