#include <drive/TankDrive.h>
Base template of automatic forwarder from i2c to CommandEvent.
◆ TankDrive()
Constructor.
Only a single instance of WifiSerialBridge should be created per sketch.
- Parameters
-
port | the port number of this service |
◆ animate()
virtual void TankDrive::animate |
( |
| ) |
|
|
inlineoverridevirtual |
◆ driveStick()
◆ getActiveStick()
◆ getChannelMixing()
bool TankDrive::getChannelMixing |
( |
| ) |
|
|
inline |
◆ getEnable()
bool TankDrive::getEnable |
( |
| ) |
|
|
inline |
◆ getGuestSpeedModifier()
float TankDrive::getGuestSpeedModifier |
( |
| ) |
|
|
inline |
◆ getMaxSpeed()
float TankDrive::getMaxSpeed |
( |
| ) |
|
|
inline |
◆ getScaling()
bool TankDrive::getScaling |
( |
| ) |
|
|
inline |
◆ getSerialLatency()
uint32_t TankDrive::getSerialLatency |
( |
| ) |
|
|
inline |
◆ getThrottle()
virtual float TankDrive::getThrottle |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ getThrottleAccelerationScale()
unsigned TankDrive::getThrottleAccelerationScale |
( |
| ) |
|
|
inline |
◆ getThrottleDecelerationScale()
unsigned TankDrive::getThrottleDecelerationScale |
( |
| ) |
|
|
inline |
◆ getThrottleInverted()
bool TankDrive::getThrottleInverted |
( |
| ) |
|
|
inline |
◆ getTurnAccelerationScale()
unsigned TankDrive::getTurnAccelerationScale |
( |
| ) |
|
|
inline |
◆ getTurnDecelerationScale()
unsigned TankDrive::getTurnDecelerationScale |
( |
| ) |
|
|
inline |
◆ getTurnInverted()
bool TankDrive::getTurnInverted |
( |
| ) |
|
|
inline |
◆ hasThrottle()
virtual bool TankDrive::hasThrottle |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ motor()
virtual void TankDrive::motor |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
throttle |
|
) |
| |
|
protectedpure virtual |
◆ setAccelerationScale()
void TankDrive::setAccelerationScale |
( |
unsigned |
scale | ) |
|
|
inline |
◆ setChannelMixing()
void TankDrive::setChannelMixing |
( |
bool |
mixing | ) |
|
|
inline |
◆ setDecelerationScale()
void TankDrive::setDecelerationScale |
( |
unsigned |
scale | ) |
|
|
inline |
◆ setDriveStick()
◆ setEnable()
void TankDrive::setEnable |
( |
bool |
enable | ) |
|
|
inline |
◆ setGuestSpeedModifier()
void TankDrive::setGuestSpeedModifier |
( |
float |
maxGuestSpeed | ) |
|
|
inline |
◆ setGuestStick()
◆ setMaxSpeed()
void TankDrive::setMaxSpeed |
( |
float |
modifier | ) |
|
|
inline |
◆ setScaling()
void TankDrive::setScaling |
( |
bool |
scaling | ) |
|
|
inline |
◆ setSerialLatency()
void TankDrive::setSerialLatency |
( |
uint32_t |
ms | ) |
|
|
inline |
◆ setTargetSteering()
◆ setThrottleAccelerationScale()
void TankDrive::setThrottleAccelerationScale |
( |
unsigned |
scale | ) |
|
|
inline |
◆ setThrottleDecelerationScale()
void TankDrive::setThrottleDecelerationScale |
( |
unsigned |
scale | ) |
|
|
inline |
◆ setThrottleInverted()
void TankDrive::setThrottleInverted |
( |
bool |
invert | ) |
|
|
inline |
◆ setTurnAccelerationScale()
void TankDrive::setTurnAccelerationScale |
( |
unsigned |
scale | ) |
|
|
inline |
◆ setTurnDecelerationScale()
void TankDrive::setTurnDecelerationScale |
( |
unsigned |
scale | ) |
|
|
inline |
◆ setTurnInverted()
void TankDrive::setTurnInverted |
( |
bool |
invert | ) |
|
|
inline |
◆ setup()
virtual void TankDrive::setup |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setUseHardStop()
void TankDrive::setUseHardStop |
( |
bool |
use | ) |
|
|
inline |
◆ setUseLeftStick()
void TankDrive::setUseLeftStick |
( |
| ) |
|
|
inline |
◆ setUseRightStick()
void TankDrive::setUseRightStick |
( |
| ) |
|
|
inline |
◆ setUseThrottle()
void TankDrive::setUseThrottle |
( |
bool |
use | ) |
|
|
inline |
◆ stop()
virtual void TankDrive::stop |
( |
| ) |
|
|
inlinevirtual |
◆ throttleSpeed()
virtual float TankDrive::throttleSpeed |
( |
float |
speedModifier | ) |
|
|
inlineprotectedvirtual |
◆ useHardStop()
bool TankDrive::useHardStop |
( |
| ) |
|
|
inline |
◆ useLeftStick()
bool TankDrive::useLeftStick |
( |
| ) |
|
|
inline |
◆ useRightStick()
bool TankDrive::useRightStick |
( |
| ) |
|
|
inline |
◆ useThrottle()
bool TankDrive::useThrottle |
( |
| ) |
|
|
inline |
◆ fChannelMixing
bool TankDrive::fChannelMixing = false |
|
protected |
◆ fDriveStick
◆ fDriveThrottle
float TankDrive::fDriveThrottle = 0 |
|
protected |
◆ fDriveTurning
float TankDrive::fDriveTurning = 0 |
|
protected |
◆ fEnabled
bool TankDrive::fEnabled = false |
|
protected |
◆ fGuestSpeedModifier
float TankDrive::fGuestSpeedModifier = 0 |
|
protected |
◆ fGuestStick
◆ fLastCommand
uint32_t TankDrive::fLastCommand = 0 |
|
protected |
◆ fMotorsStopped
bool TankDrive::fMotorsStopped = false |
|
protected |
◆ fScaling
bool TankDrive::fScaling = false |
|
protected |
◆ fSerialLatency
uint32_t TankDrive::fSerialLatency = 0 |
|
protected |
◆ fSpeedModifier
float TankDrive::fSpeedModifier = 0 |
|
protected |
◆ fTargetSteering
◆ fThrottleAccelerationScale
unsigned TankDrive::fThrottleAccelerationScale = 0 |
|
protected |
◆ fThrottleDecelerationScale
unsigned TankDrive::fThrottleDecelerationScale = 0 |
|
protected |
◆ fThrottleInverted
bool TankDrive::fThrottleInverted = false |
|
protected |
◆ fTurnAccelerationScale
unsigned TankDrive::fTurnAccelerationScale = 0 |
|
protected |
◆ fTurnDecelerationScale
unsigned TankDrive::fTurnDecelerationScale = 0 |
|
protected |
◆ fTurnInverted
bool TankDrive::fTurnInverted = false |
|
protected |
◆ fUseHardStop
bool TankDrive::fUseHardStop = true |
|
protected |
◆ fUseLeftStick
bool TankDrive::fUseLeftStick = true |
|
protected |
◆ fUseThrottle
bool TankDrive::fUseThrottle = true |
|
protected |
◆ fWasConnected
bool TankDrive::fWasConnected = false |
|
protected |
The documentation for this class was generated from the following file: