Skip to content

Issue when trying ti initiate the VescUART class #33

@nachette28

Description

@nachette28

Please excuse the lack of knowledge.

I've been trying to program an Arduino controller for a Vesc V4 and I'm getting the following error.
I have tried to re-install the library sever times as well as uploading some of the example sketches from the Vesc UART library, and keep getting the aforementioned error on the IDE console.
Any input/help would be of great help. Thanks

Arduino: 1.8.15 (Linux), Board: "Arduino Nano, ATmega328P"

getVescValues:12:1: error: 'VescUart' does not name a type; did you mean 'getchar'?
VescUart UART;
^~~~~~~~
getchar
/home/thinkpad/Arduino/VescUart/examples/getVescValues/getVescValues.ino: In function 'void setup()':
getVescValues:20:3: error: 'Serial1' was not declared in this scope
Serial1.begin(19200);
^~~~~~~
/home/thinkpad/Arduino/VescUart/examples/getVescValues/getVescValues.ino:20:3: note: suggested alternative: 'Serial'
Serial1.begin(19200);
^~~~~~~
Serial
getVescValues:25:3: error: 'UART' was not declared in this scope
UART.setSerialPort(&Serial1);
^~~~
/home/thinkpad/Arduino/VescUart/examples/getVescValues/getVescValues.ino:25:3: note: suggested alternative: 'UDR0'
UART.setSerialPort(&Serial1);
^~~~
UDR0
/home/thinkpad/Arduino/VescUart/examples/getVescValues/getVescValues.ino: In function 'void loop()':
getVescValues:31:8: error: 'UART' was not declared in this scope
if ( UART.getVescValues() ) {
^~~~
/home/thinkpad/Arduino/VescUart/examples/getVescValues/getVescValues.ino:31:8: note: suggested alternative: 'UDR0'
if ( UART.getVescValues() ) {
^~~~
UDR0
exit status 1
'VescUart' does not name a type; did you mean 'getchar'?

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions