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)
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_
andiostream = &SerialUSB
(maybe enabledelay(3000)
as a fail-safe to upload a new sketch)