RollingGecko / VescUartControl

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

Issue when trying ti initiate the VescUART class #33

Open nachette28 opened 2 years ago

nachette28 commented 2 years ago

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.