Sabertooth ClassSyRen/Sabertooth Library for .NET
Controls a Sabertooth or SyRen motor driver running in Packet Serial mode.
Inheritance Hierarchy

SystemObject
  DimensionEngineeringSerialMotorDriver
    DimensionEngineeringSabertooth

Namespace: DimensionEngineering
Assembly: DimensionEngineering.Sabertooth (in DimensionEngineering.Sabertooth.dll) Version: 1.6.0.0 (1.6.0.0)
Syntax

public class Sabertooth : SerialMotorDriver

The Sabertooth type exposes the following members.

Constructors

  NameDescription
Public methodSabertooth
Initializes a new instance of the Sabertooth class. The driver address is set to 128. Be sure to call Open(String, Int32).
Public methodSabertooth(String, Int32)
Initializes a new instance of the Sabertooth class. The driver address is set to 128. The specified serial port is opened.
Public methodSabertooth(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.
Top
Methods

  NameDescription
Public methodAutoBaud
Sends the autobaud character.
Public methodAutoBaud(Boolean)
Sends the autobaud character.
Public methodStatic memberAutoBaud(SerialPort)
Sends the autobaud character.
Public methodStatic memberAutoBaud(Stream)
Sends the autobaud character.
Public methodStatic memberAutoBaud(SerialPort, Boolean)
Sends the autobaud character.
Public methodStatic memberAutoBaud(Stream, Boolean)
Sends the autobaud character.
Public methodClose
Closes the serial port, if the instance has ownership of it.
(Inherited from SerialMotorDriver.)
Public methodCommand
Sends a Packet Serial command to the motor driver.
Public methodDrive
Sets the driving power.
Public methodMotor(Int32)
Sets the power of motor 1.
Public methodMotor(Int32, Int32)
Sets the power of the specified motor.
Public methodOpen(SerialPort)
Uses an already-opened serial port.
(Inherited from SerialMotorDriver.)
Public methodOpen(Stream)
Uses an already-open stream.
(Inherited from SerialMotorDriver.)
Public methodOpen(SerialPort, Boolean)
Uses an already-opened serial port, and optionally takes ownership of it.
(Inherited from SerialMotorDriver.)
Public methodOpen(Stream, Boolean)
Uses an already-open stream, and optionally takes ownership of it.
(Inherited from SerialMotorDriver.)
Public methodOpen(String, Int32)
Opens the specified serial port.
(Inherited from SerialMotorDriver.)
Public methodSetBaudRate
Sets the baud rate. Baud rate is stored in EEPROM, so changes persist between power cycles.
Public methodSetDeadband
Sets the deadband. Deadband is stored in EEPROM, so changes persist between power cycles.
Public methodSetMaxVoltage
Sets the maximum voltage. Maximum voltage is stored in EEPROM, so changes persist between power cycles.
Public methodSetMinVoltage
Sets the minimum voltage.
Public methodSetRamping
Sets the ramping. Ramping is stored in EEPROM, so changes persist between power cycles.
Public methodSetTimeout
Sets the serial timeout.
Public methodStop
Stops.
Public methodTurn
Sets the turning power.
Top
Properties

  NameDescription
Public propertyAddress
Gets or sets the driver address. The default is 128.
Public propertyIsOpen
Gets whether the serial port is open.
(Inherited from SerialMotorDriver.)
Public propertyPort
Gets the serial port being used.
(Inherited from SerialMotorDriver.)
Top
See Also

Reference