#include <panic_broadcaster.hpp>

Public Member Functions | |
| void | dontPanic () |
| const protocol::Panic::FieldTypes::reason_text & | getReason () const |
| bool | isPanicking () const |
| void | panic (const char *short_reason_description, MonotonicDuration broadcasting_period=MonotonicDuration::fromMSec(100), const TransferPriority priority=TransferPriority::Default) |
| PanicBroadcaster (INode &node) | |
Private Member Functions | |
| virtual void | handleTimerEvent (const TimerEvent &) |
| void | publishOnce () |
Private Member Functions inherited from uavcan::TimerBase | |
| MonotonicDuration | getPeriod () const |
| void | startOneShotWithDeadline (MonotonicTime deadline) |
| void | startOneShotWithDelay (MonotonicDuration delay) |
| void | startPeriodic (MonotonicDuration period) |
| TimerBase (INode &node) | |
Private Attributes | |
| protocol::Panic | msg_ |
| Publisher< protocol::Panic > | pub_ |
Helper for broadcasting the message uavcan.protocol.Panic.
Definition at line 18 of file panic_broadcaster.hpp.
|
inlineexplicit |
Definition at line 38 of file panic_broadcaster.hpp.
|
inline |
Stop broadcasting immediately.
Definition at line 78 of file panic_broadcaster.hpp.
|
inline |
Definition at line 86 of file panic_broadcaster.hpp.
|
inlineprivatevirtual |
Implement this method in your class to receive callbacks.
Implements uavcan::TimerBase.
Definition at line 32 of file panic_broadcaster.hpp.
|
inline |
Definition at line 84 of file panic_broadcaster.hpp.
|
inline |
This method does not block and can't fail.
| short_reason | Short ASCII string that describes the reason of the panic, 7 characters max. If the string exceeds 7 characters, it will be truncated. |
| broadcasting_period | Broadcasting period. Optional. |
| priority | Transfer priority. Optional. |
Definition at line 50 of file panic_broadcaster.hpp.
|
inlineprivate |
Definition at line 23 of file panic_broadcaster.hpp.
|
private |
Definition at line 21 of file panic_broadcaster.hpp.
|
private |
Definition at line 20 of file panic_broadcaster.hpp.