Create a UsbSabertoothSerial for the serial port you are using.
Then, attach a UsbSabertooth for each motor driver.
Inheritance Hierarchy
DimensionEngineeringSerialMotorDriver
DimensionEngineeringUsbSabertoothSerial
Namespace: DimensionEngineering
Assembly: DimensionEngineering.Sabertooth (in DimensionEngineering.Sabertooth.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax
The UsbSabertoothSerial type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UsbSabertoothSerial |
Initializes a new instance of the UsbSabertoothSerial class.
Be sure to call Open(String, Int32).
| |
UsbSabertoothSerial(String, Int32) |
Initializes a new instance of the UsbSabertoothSerial class.
The specified serial port is opened.
|
Methods
Name | Description | |
---|---|---|
Close |
Closes the serial port, if the instance has ownership of it.
(Inherited from SerialMotorDriver.) | |
Open(SerialPort) |
Uses an already-opened serial port.
(Inherited from SerialMotorDriver.) | |
Open(Stream) |
Uses an already-open stream.
(Inherited from SerialMotorDriver.) | |
Open(SerialPort, Boolean) |
Uses an already-opened serial port, and optionally takes ownership of it.
(Inherited from SerialMotorDriver.) | |
Open(Stream, Boolean) |
Uses an already-open stream, and optionally takes ownership of it.
(Inherited from SerialMotorDriver.) | |
Open(String, Int32) |
Opens the specified serial port.
(Inherited from SerialMotorDriver.) |
Properties
Name | Description | |
---|---|---|
IsOpen |
Gets whether the serial port is open.
(Inherited from SerialMotorDriver.) | |
Port |
Gets the serial port being used.
(Inherited from SerialMotorDriver.) |
See Also