mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:53:34 +08:00
libuavcan documentation
This commit is contained in:
@@ -11,7 +11,10 @@
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
|
||||
/**
|
||||
* Implement this interface in the application to support the standard remote reconfiguration services.
|
||||
* Refer to @ref ParamServer.
|
||||
*/
|
||||
class UAVCAN_EXPORT IParamManager
|
||||
{
|
||||
public:
|
||||
@@ -62,7 +65,10 @@ public:
|
||||
virtual int eraseAllParams() = 0;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Convenience class for supporting the standard configuration services.
|
||||
* Highly recommended to use.
|
||||
*/
|
||||
class UAVCAN_EXPORT ParamServer
|
||||
{
|
||||
typedef MethodBinder<ParamServer*, void (ParamServer::*)(const protocol::param::GetSet::Request&,
|
||||
@@ -89,6 +95,10 @@ public:
|
||||
, manager_(NULL)
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Starts the parameter server with given param manager instance.
|
||||
* Returns negative error code.
|
||||
*/
|
||||
int start(IParamManager* manager);
|
||||
|
||||
IParamManager* getParamManager() const { return manager_; }
|
||||
|
||||
Reference in New Issue
Block a user