UsbSabertooth ClassSyRen/Sabertooth Library for .NET
Controls a USB-enabled Sabertooth motor driver running in Packet Serial mode.
Inheritance Hierarchy

SystemObject
  DimensionEngineeringUsbSabertooth

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

public class UsbSabertooth

The UsbSabertooth type exposes the following members.

Constructors

  NameDescription
Public methodUsbSabertooth
Initializes a new instance of the UsbSabertooth class. The driver address is set to 128. Be sure to set Connection.
Public methodUsbSabertooth(UsbSabertoothSerial)
Initializes a new instance of the UsbSabertooth class. The driver address is set to 128. The specified serial connection is used.
Top
Methods

  NameDescription
Public methodCommand(Byte, Byte)
Sends a packet serial command to the motor driver.
Public methodCommand(Byte, Byte)
Sends a multibyte packet serial command to the motor driver.
Public methodDrive
Controls the mixed-mode drive channel. In User Mode, this sets MD.
Public methodFreewheel(Boolean)
Causes motor output 1 to freewheel. In User Mode, this sets Q1.
Public methodFreewheel(Int32)
Causes motor output 1 to freewheel. In User Mode, this sets Q1.
Public methodFreewheel(Int32, Boolean)
Causes the specified motor output to freewheel. In User Mode, this sets Q1 or Q2.
Public methodFreewheel(Int32, Int32)
Causes the specified motor output to freewheel. In User Mode, this sets Q1 or Q2.
Public methodStatic memberFromHidStream
Initializes a new instance of the UsbSabertooth class that communicates over the USB HID protocol.
Public methodGet
Gets a value from the motor driver.
Public methodGetBattery(Int32)
Gets the battery voltage.
Public methodGetBattery(Int32, Boolean)
Gets the battery voltage.
Public methodGetCurrent(Int32)
Gets the motor output current.
Public methodGetCurrent(Int32, Boolean)
Gets the motor output current.
Public methodGetSpecial
Gets a special value from the motor driver.
Public methodGetTemperature(Int32)
Gets the motor output temperature.
Public methodGetTemperature(Int32, Boolean)
Gets the motor output temperature.
Public methodKeepAlive
Resets the serial timeout. This is done automatically any time a motor output is set. You can, however, call this if you don't want to set any motor outputs.
Public methodMotor(Int32)
Controls motor output 1. In User Mode, this sets M1.
Public methodMotor(Int32, Int32)
Controls the specified motor output. In User Mode, this sets M1 or M2.
Public methodPower(Int32)
Controls power output 1, if power output 1 is configured as a controllable output. In User Mode, this sets P1.
Public methodPower(Int32, Int32)
Controls the specified power output, if the power output is configured as a controllable output. In User Mode, this sets P1 or P2.
Public methodSet
Sets a value on the motor driver.
Public methodSetCurrentLimit(Int32)
Sets the current limit for all motor outputs. In User Mode, this sets T1 and T2. 2014-06-09 and newer firmwares support changing the current limit while running.
Public methodSetCurrentLimit(Int32, Int32)
Sets the current limit for the specified motor output. In User Mode, this sets T1 or T2. 2014-06-09 and newer firmwares support changing the current limit while running.
Public methodSetRamping(Int32)
Sets the ramping for all motor outputs. In User Mode, this sets R1 and R2.
Public methodSetRamping(Int32, Int32)
Sets the ramping for the specified motor output. In User Mode, this sets R1 or R2.
Public methodSetTimeout
Sets the serial timeout.
Public methodShutDown
Shuts down an output.
Public methodTurn
Controls the mixed-mode turn channel. In User Mode, this sets MT.
Top
Fields

  NameDescription
Public fieldStatic memberGetTimedOut
Get requests return this value if they time out.
Top
Properties

  NameDescription
Public propertyAddress
Gets or sets the driver address. The default is 128.
Public propertyConnection
Gets or sets the serial connection being used.
Public propertyGetRetryInterval
Gets or sets the get retry interval, in milliseconds.
Public propertyGetTimeout
Gets or sets the get timeout, in milliseconds.
Public propertyUsingCrc
Gets whether CRC-protected commands are used. They are, by default.
Top
See Also

Reference