RSeries astromech firmware
TurtleDrive Class Referenceabstract

#include <drive/TurtleDrive.h>

+ Inheritance diagram for TurtleDrive:

Public Member Functions

double getDroidDiameterMM ()
 
double getWheelCircumferenceMM ()
 
double getWheelTurnCount ()
 
double getDroidCircumference ()
 
int getMoveDistanceCount (double millimeters)
 
int getTurnDistanceCount (double turnDegrees)
 
void moveInches (double inches)
 
void moveFeet (double feet)
 
void moveMeters (double meters)
 
void moveCentimeters (double meters)
 
virtual bool enterCommandMode ()=0
 
virtual void leaveCommandMode ()=0
 
virtual bool isCommandModeActive ()=0
 
virtual void moveMillimeters (double mm, float speed=0.1)=0
 
virtual void turnDegrees (double degrees, float speed=0.1)=0
 
virtual void stop ()=0
 

Protected Attributes

double fDroidDiameterMM = 558.8
 
double fWheelCircumferenceMM = 381
 
double fWheelTurnCount = 610
 

Member Function Documentation

◆ enterCommandMode()

virtual bool TurtleDrive::enterCommandMode ( )
pure virtual

Implemented in TankDriveRoboteq.

◆ getDroidCircumference()

double TurtleDrive::getDroidCircumference ( )
inline

◆ getDroidDiameterMM()

double TurtleDrive::getDroidDiameterMM ( )
inline

◆ getMoveDistanceCount()

int TurtleDrive::getMoveDistanceCount ( double  millimeters)
inline

◆ getTurnDistanceCount()

int TurtleDrive::getTurnDistanceCount ( double  turnDegrees)
inline

◆ getWheelCircumferenceMM()

double TurtleDrive::getWheelCircumferenceMM ( )
inline

◆ getWheelTurnCount()

double TurtleDrive::getWheelTurnCount ( )
inline

◆ isCommandModeActive()

virtual bool TurtleDrive::isCommandModeActive ( )
pure virtual

Implemented in TankDriveRoboteq.

◆ leaveCommandMode()

virtual void TurtleDrive::leaveCommandMode ( )
pure virtual

Implemented in TankDriveRoboteq.

◆ moveCentimeters()

void TurtleDrive::moveCentimeters ( double  meters)
inline

◆ moveFeet()

void TurtleDrive::moveFeet ( double  feet)
inline

◆ moveInches()

void TurtleDrive::moveInches ( double  inches)
inline

◆ moveMeters()

void TurtleDrive::moveMeters ( double  meters)
inline

◆ moveMillimeters()

virtual void TurtleDrive::moveMillimeters ( double  mm,
float  speed = 0.1 
)
pure virtual

Implemented in TankDriveRoboteq.

◆ stop()

virtual void TurtleDrive::stop ( )
pure virtual

Implemented in TankDriveRoboteq.

◆ turnDegrees()

virtual void TurtleDrive::turnDegrees ( double  degrees,
float  speed = 0.1 
)
pure virtual

Implemented in TankDriveRoboteq.

Member Data Documentation

◆ fDroidDiameterMM

double TurtleDrive::fDroidDiameterMM = 558.8
protected

◆ fWheelCircumferenceMM

double TurtleDrive::fWheelCircumferenceMM = 381
protected

◆ fWheelTurnCount

double TurtleDrive::fWheelTurnCount = 610
protected

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