mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 09:33:35 +08:00
parameter_update use uORB::Subscription consistently
This commit is contained in:
@@ -62,9 +62,13 @@ void FixedwingLandDetector::_update_topics()
|
||||
|
||||
void FixedwingLandDetector::_update_params()
|
||||
{
|
||||
parameter_update_s param_update;
|
||||
// check for parameter updates
|
||||
if (_parameter_update_sub.updated()) {
|
||||
// clear update
|
||||
parameter_update_s pupdate;
|
||||
_parameter_update_sub.copy(&pupdate);
|
||||
|
||||
if (_param_update_sub.update(¶m_update)) {
|
||||
// update parameters from storage
|
||||
_update_params();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user