mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 22:33:34 +08:00
BlockParam: add BlockParam::commit_no_notification()
This commit is contained in:
@@ -113,6 +113,12 @@ void BlockParam<T>::commit()
|
||||
if (_handle != PARAM_INVALID) { param_set(_handle, &_val); }
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void BlockParam<T>::commit_no_notification()
|
||||
{
|
||||
if (_handle != PARAM_INVALID) { param_set_no_notification(_handle, &_val); }
|
||||
}
|
||||
|
||||
template <class T>
|
||||
BlockParam<T>::~BlockParam() {};
|
||||
|
||||
|
||||
@@ -83,7 +83,17 @@ public:
|
||||
BlockParam &operator=(const BlockParam &) = delete;
|
||||
|
||||
inline T get() const { return _val; }
|
||||
|
||||
/**
|
||||
* Store the parameter value to the parameter storage (@see param_set())
|
||||
*/
|
||||
void commit();
|
||||
|
||||
/**
|
||||
* Store the parameter value to the parameter storage, w/o notifying the system (@see param_set_no_notification())
|
||||
*/
|
||||
void commit_no_notification();
|
||||
|
||||
void set(T val);
|
||||
void update() override;
|
||||
virtual ~BlockParam();
|
||||
|
||||
Reference in New Issue
Block a user