mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:03:33 +08:00
libuavcan documentation
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
|
||||
/**
|
||||
* Helper for broadcasting the message uavcan.protocol.Panic.
|
||||
*/
|
||||
class UAVCAN_EXPORT PanicBroadcaster : private TimerBase
|
||||
{
|
||||
Publisher<protocol::Panic> pub_;
|
||||
@@ -28,8 +30,15 @@ public:
|
||||
pub_.setTxTimeout(MonotonicDuration::fromMSec(protocol::Panic::BROADCASTING_INTERVAL_MS - 10));
|
||||
}
|
||||
|
||||
/**
|
||||
* Begin broadcasting at the standard interval.
|
||||
* This method does not block and can't fail.
|
||||
*/
|
||||
void panic(const char* short_reason);
|
||||
|
||||
/**
|
||||
* Stop broadcasting immediately.
|
||||
*/
|
||||
void dontPanic(); // Where's my towel
|
||||
|
||||
bool isPanicking() const;
|
||||
|
||||
Reference in New Issue
Block a user