RollingGecko / VescUartControl

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

VescUartControl for Vesc tool working with Teensy 3.6 Error #18

Open jayjaymomo opened 6 years ago

jayjaymomo commented 6 years ago

Hi there, my name is Jessica.

I was wondering if anyone can provide me with some assistance. I made various endeavors to run the correct code given by RollingGrecko that allows my Arduino to communicate with my Vesc (Firmware V3.28 ) through UART. I managed to get my Arduino Mega working on a Vesc Firmware V3.28 by receiving information from my Vesc using UART. However for some odd reason, I am unable to get RollingGrecko's code to work on my Teensy 3.6.

This is the Error that I have received on my teensy 3.6(Seen below)

cannot convert 'usb_serial_class' to 'HardwareSerial' for argument '1' to 'void SetDebugSerialPort(HardwareSerial*)'

After hours of research, I have notice that the Teensy 3.6 runs a different processor than the Arduino Mega. Can someone verify if they are having the same problem when using a Teensy 3.6??

Furthermore, any help with getting my Teensy 3.6 to work through UART with the new Firmware V3.28 is greatly appreciated.

Thank you, Sincerely Jess :)

fabolhak commented 6 years ago

Hey, I also had problems getting it to work on our Teensy 3.2. I simply fixed it with changing the type from HardwareSerial* to usb_serial_class*:

https://github.com/tum-phoenix/drive_teensy_vesc_control/commit/bce9d1105206404d5bc72050649393fa77210bdf

Teslafly commented 5 years ago

my branch: https://github.com/Teslafly/VescUartControl/tree/VESC6_fixedSerial makes some serial fixups that may help seems to run on the teensy 3.2 just fine and works with new vesc firmwares (tested on fw3.38)