Observer interface for receiving servo completion/abort/error events.
More...
#include <ServoEventListener.h>
Observer interface for receiving servo completion/abort/error events.
Register an implementation using ServoEvent::AddListener().
- Warning
- Do not destroy a listener object while it is registered.
◆ ~ServoEventListener()
| virtual ServoEventListener::~ServoEventListener |
( |
| ) |
|
|
virtualdefault |
◆ onServoAbort()
| virtual void ServoEventListener::onServoAbort |
( |
uint16_t | id, |
|
|
ServoId | channel ) |
|
virtual |
Called when a servo action is aborted.
- Parameters
-
◆ onServoComplete()
| virtual void ServoEventListener::onServoComplete |
( |
uint16_t | id, |
|
|
ServoId | channel ) |
|
virtual |
Called when a servo action completes successfully.
- Parameters
-
◆ onServoError()
| virtual void ServoEventListener::onServoError |
( |
uint16_t | id, |
|
|
ServoId | channel ) |
|
virtual |
Called when a servo action fails.
- Parameters
-
The documentation for this class was generated from the following file: