rosserial icon indicating copy to clipboard operation
rosserial copied to clipboard

Use of Native USB Port on Arduino Due

Open W4li8 opened this issue 2 years ago • 0 comments

By default, and when using this popular hack the Arduino Due still only works with the programming port, assuming baud rates are properly matched between devices (the default is 57600 and it works up to 250000).

When a connection is lost, and re-established through the programming port, the Arduino Due resets - which presents an undesirable behavior that would not occur using the native port.

In the roslib ArduinoHardware.h change definitions to match the following: #define SERIAL_CLASS Serial_ and iostream = &SerialUSB (maybe enable delay(3000) as a fail-safe to upload a new sketch)

W4li8 avatar Jan 13 '23 19:01 W4li8