-
Notifications
You must be signed in to change notification settings - Fork 8
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
Arduino compile error #1
Comments
Adding |
Also have these warnings:
I don't think your |
OK, so I got it to compile, but there are a ton of warnings. I did this, which might not be the best solution. #if defined(ARDUINO)
#include "Arduino.h"
#include "optional.hpp" // NOLINT
#include <elapsedMillis.h> // <- added this
#else
#include <optional>
#include "core/core.h"
#endif all of the remaining warnings:
|
Thanks, I use Teensy a ton and got spoiled having elapsedMillis. This is the Teensy implementation: I'll have to look more into the template issues with the Units library. Tough having different Arduino boards using different g++/gcc compiler versions. I think it's mostly used here for radian <-> degree conversions. Lot's of warnings are expected. This is from the C MAV Link message implementation (https://github.com/mavlink/c_library_v2), which this library wraps around. |
I tried this. Using the example, I could not get anything to compile. Compiling on Arduino for STM32, I get: I get the following error related: When I compile for pure arduino (Mega/Arduino/mini etc), I get the following: |
So I cloned
mavlink
andunits
into my library folder. When I try to add the header:I get the following warnings and errors about
elapsedMillis
(and others) not being types ... am I missing something?The text was updated successfully, but these errors were encountered: