RSeries astromech firmware
|
#include <body/Gripper.h>
Controls a TB662 motor controller to open/close gripper hand.
Smoke will run for a maximum of 6.5 seconds with a minimum of 5 minute pause in between activations.
Public Member Functions | |
Gripper (byte idPin, byte in1Pin, byte in2Pin, byte pwmPin, byte standbyPin, byte gripperOpenPin, byte gripperClosePin) | |
Constructor. More... | |
bool | isAttached () |
bool | isGripperOpen () |
bool | isGripperClosed () |
void | gripperArm () |
Arm gripper. More... | |
void | gripperDisarm () |
Disarm gripper. More... | |
void | gripperOn () |
Turn on the gripper. More... | |
void | gripperOff () |
Turn off the smoke machine. More... | |
virtual void | handleCommand (const char *cmd) override |
Gripper Commands start with 'GP'. More... | |
virtual void | animate () override |
Perform a single frame of welder animation. More... | |
Public Member Functions inherited from CommandEvent | |
CommandEvent () | |
Default Constructor. More... | |
virtual void | handleCommand (String cmd) |
Subclasses should implement this function to process commands specific to their device. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CommandEvent | |
static void | process (char *cmd) |
Calls handleCommand() for each created CommandEvent subclass. More... | |
static void | process (const char *cmd) |
Calls handleCommand() for each created CommandEvent subclass. More... | |
static void | process (PROGMEMString pcmd) |
Calls handleCommand() for each created CommandEvent subclass. More... | |
|
inline |
Constructor.
|
inlineoverridevirtual |
Perform a single frame of welder animation.
Implements AnimatedEvent.
|
inline |
Arm gripper.
|
inline |
Disarm gripper.
|
inline |
Turn off the smoke machine.
|
inline |
Turn on the gripper.
|
inlineoverridevirtual |
Gripper Commands start with 'GP'.
Implements CommandEvent.
|
inline |
|
inline |
|
inline |