Controls a Sabertooth or SyRen motor driver running in Packet Serial mode.
Inheritance Hierarchy
DimensionEngineeringSerialMotorDriver
DimensionEngineeringSabertooth
Namespace: DimensionEngineering
Assembly: DimensionEngineering.Sabertooth (in DimensionEngineering.Sabertooth.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax
The Sabertooth type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Sabertooth |
Initializes a new instance of the Sabertooth class.
The driver address is set to 128. Be sure to call Open(String, Int32).
| |
Sabertooth(String, Int32) |
Initializes a new instance of the Sabertooth class.
The driver address is set to 128. The specified serial port is opened.
| |
Sabertooth(Int32, String, Int32) |
Initializes a new instance of the Sabertooth class.
The driver address is set to the value given, and the specified serial port is opened.
|
Methods
Name | Description | |
---|---|---|
AutoBaud |
Sends the autobaud character.
| |
AutoBaud(Boolean) |
Sends the autobaud character.
| |
AutoBaud(SerialPort) |
Sends the autobaud character.
| |
AutoBaud(Stream) |
Sends the autobaud character.
| |
AutoBaud(SerialPort, Boolean) |
Sends the autobaud character.
| |
AutoBaud(Stream, Boolean) |
Sends the autobaud character.
| |
Close |
Closes the serial port, if the instance has ownership of it.
(Inherited from SerialMotorDriver.) | |
Command |
Sends a Packet Serial command to the motor driver.
| |
Drive |
Sets the driving power.
| |
Motor(Int32) |
Sets the power of motor 1.
| |
Motor(Int32, Int32) |
Sets the power of the specified motor.
| |
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.) | |
SetBaudRate |
Sets the baud rate.
Baud rate is stored in EEPROM, so changes persist between power cycles.
| |
SetDeadband |
Sets the deadband.
Deadband is stored in EEPROM, so changes persist between power cycles.
| |
SetMaxVoltage |
Sets the maximum voltage.
Maximum voltage is stored in EEPROM, so changes persist between power cycles.
| |
SetMinVoltage |
Sets the minimum voltage.
| |
SetRamping |
Sets the ramping.
Ramping is stored in EEPROM, so changes persist between power cycles.
| |
SetTimeout |
Sets the serial timeout.
| |
Stop |
Stops.
| |
Turn |
Sets the turning power.
|
Properties
Name | Description | |
---|---|---|
Address |
Gets or sets the driver address. The default is 128.
| |
IsOpen |
Gets whether the serial port is open.
(Inherited from SerialMotorDriver.) | |
Port |
Gets the serial port being used.
(Inherited from SerialMotorDriver.) |
See Also