Manages transition from 2 to 3 legged stance using 4 limit switches.
|
| Stance (HardwareSerial &saberSerialPort, byte tiltUpPin=6, byte tiltDownPin=7, byte legUpPin=8, byte legDownPin=9, byte legPotPin=A0, byte saberAddress=128) |
| Constructor. More...
|
|
| Stance (byte tiltUpPin=6, byte tiltDownPin=7, byte legUpPin=8, byte legDownPin=9, byte legPotPin=A0, byte saberAddress=128) |
|
void | setOrientationSensors (Orientation &bodyIMU, Orientation &tiltIMU) |
|
virtual void | handleCommand (const char *cmd) override |
| Subclasses should implement this function to process commands specific to their device. More...
|
|
bool | isTwoLegged () |
| Returns true if the current stance is two legged. More...
|
|
bool | isThreeLegged () |
| Returns true if the current stance is three legged. More...
|
|
bool | isValid () |
| Returns true if the current stance is either two legged or three legged. More...
|
|
void | changeToTwoLegged () |
| Initiate a transition to two legged mode. More...
|
|
void | changeToThreeLegged () |
| Initiate a transition to three legged mode. More...
|
|
virtual void | setup () override |
| Perform any initialzation not possible in the constructor. More...
|
|
virtual void | animate () override |
| Check status of Sabertooth and limit switches and manage transition if one has been initiated. More...
|
|
| AnimatedEvent () |
| Default Constructor. More...
|
|
void | setLoopDoneCallback (AnimatedLoopDone loopProc) |
|