ros-drivers / rosserial

A ROS client library for small, embedded devices, such as Arduino. See: http://wiki.ros.org/rosserial
508 stars 527 forks source link

Use of Native USB Port on Arduino Due #608

Open W4li8 opened 1 year ago

W4li8 commented 1 year ago

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)