RollingGecko / VescUartControl

Arduino library to interface with the VESC bldc over UART.
Other
141 stars 75 forks source link

Arduino/libraries/VescUart/VescUart.h:45:21: fatal error: arduino.h: No such file or directory #include "arduino.h" #16

Open lukebelz opened 6 years ago

lukebelz commented 6 years ago

Not quite sure what I am doing wrong, but I downloaded the zip, unpacked into the libraries folder. Then I tried to run the VescUartSample.ino file in the samples folder. But this is the error I get. I have the right board selected (uno) and the right port selected.

Any ideas or advice on getting started with this library?

Running from ubuntu 16.04 in the off-line IDE enviroment.

RollingGecko commented 6 years ago

Try to use #include

lukebelz commented 6 years ago

Arduino/libraries/VescUart/VescUart.h:45:21: fatal error: arduino.h: No such file or directory

include

Still same issue. If I comment that line out, Than I get:

Arduino/vesc_test/vesc_test.ino: In function 'void setup()': vesc_test:11: error: 'Serial1' was not declared in this scope Serial1.begin(115200);

If I change that to Serial instead of Serial1 (On the uno, it should be Serial), then I get this:

Arduino/libraries/VescUart/VescUart.cpp:18: Arduino/libraries/VescUart/local_datatypes.h:25:2: error: 'boolean' does not name a type boolean valUpperButton;

per1234 commented 6 years ago

The problem is the miscapitalization of the filename. It should be Arduino.h, not arduino.h