Public Member Functions | Private Member Functions | Private Attributes
SabertoothSimplified Class Reference

Controls a Sabertooth motor driver running in Simplified Serial mode. More...

#include <SabertoothSimplified.h>

List of all members.

Public Member Functions

void drive (int power)
void motor (int power)
void motor (byte motor, int power)
 SabertoothSimplified ()
 SabertoothSimplified (Print &port)
void stop ()
void turn (int power)

Private Member Functions

void mixedMode (boolean enable)
void mixedUpdate ()
void raw (byte motor, int power)

Private Attributes

boolean _mixed
int _mixedDrive
boolean _mixedDriveSet
int _mixedTurn
boolean _mixedTurnSet
Print & _port

Detailed Description

Controls a Sabertooth motor driver running in Simplified Serial mode.

Definition at line 39 of file SabertoothSimplified.h.


Constructor & Destructor Documentation

Initializes a new instance of the SabertoothSimplified class. The Arduino TX serial port is used.

Definition at line 21 of file SabertoothSimplified.cpp.

Initializes a new instance of the SabertoothSimplified class. The specified serial port is used.

Parameters:
portThe port to use.

Definition at line 27 of file SabertoothSimplified.cpp.


Member Function Documentation

void SabertoothSimplified::drive ( int  power)

Sets the driving power.

Parameters:
powerThe power, between -127 and 127.

Definition at line 44 of file SabertoothSimplified.cpp.

void SabertoothSimplified::mixedMode ( boolean  enable) [private]

Definition at line 67 of file SabertoothSimplified.cpp.

Definition at line 75 of file SabertoothSimplified.cpp.

void SabertoothSimplified::motor ( int  power)

Sets the power of motor 1.

Parameters:
powerThe power, between -127 and 127.

Definition at line 33 of file SabertoothSimplified.cpp.

void SabertoothSimplified::motor ( byte  motor,
int  power 
)

Sets the power of the specified motor.

Parameters:
motorThe motor number, 1 or 2.
powerThe power, between -127 and 127.

Definition at line 38 of file SabertoothSimplified.cpp.

void SabertoothSimplified::raw ( byte  motor,
int  power 
) [private]

Definition at line 82 of file SabertoothSimplified.cpp.

Stops.

Definition at line 60 of file SabertoothSimplified.cpp.

void SabertoothSimplified::turn ( int  power)

Sets the turning power.

Parameters:
powerThe power, between -127 and 127.

Definition at line 52 of file SabertoothSimplified.cpp.


Member Data Documentation

boolean SabertoothSimplified::_mixed [private]

Definition at line 92 of file SabertoothSimplified.h.

Definition at line 93 of file SabertoothSimplified.h.

Definition at line 94 of file SabertoothSimplified.h.

Definition at line 93 of file SabertoothSimplified.h.

Definition at line 94 of file SabertoothSimplified.h.

Print& SabertoothSimplified::_port [private]

Definition at line 95 of file SabertoothSimplified.h.


The documentation for this class was generated from the following files:


ric_mc
Author(s): RoboTiCan
autogenerated on Fri May 20 2016 03:48:57