mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Revert changes to the check_params(const bool force) declaration/definition to match current PX4:master.
This commit is contained in:
@@ -78,7 +78,7 @@ void LandDetector::Run()
|
|||||||
{
|
{
|
||||||
perf_begin(_cycle_perf);
|
perf_begin(_cycle_perf);
|
||||||
|
|
||||||
_check_params();
|
_check_params(false);
|
||||||
_actuator_armed_sub.update(&_arming);
|
_actuator_armed_sub.update(&_arming);
|
||||||
_update_topics();
|
_update_topics();
|
||||||
_update_state();
|
_update_state();
|
||||||
@@ -148,11 +148,11 @@ void LandDetector::Run()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LandDetector::_check_params()
|
void LandDetector::_check_params(const bool force)
|
||||||
{
|
{
|
||||||
parameter_update_s param_update;
|
parameter_update_s param_update;
|
||||||
|
|
||||||
if (_param_update_sub.update(¶m_update)) {
|
if (_param_update_sub.update(¶m_update) || force) {
|
||||||
_update_params();
|
_update_params();
|
||||||
_total_flight_time = static_cast<uint64_t>(_param_total_flight_time_high.get()) << 32;
|
_total_flight_time = static_cast<uint64_t>(_param_total_flight_time_high.get()) << 32;
|
||||||
_total_flight_time |= _param_total_flight_time_low.get();
|
_total_flight_time |= _param_total_flight_time_low.get();
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void _check_params();
|
void _check_params(bool force = false);
|
||||||
|
|
||||||
void Run() override;
|
void Run() override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user