mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 23:43:34 +08:00
Navigator: Only update params as they change
This commit is contained in:
@@ -278,6 +278,11 @@ Navigator::params_update()
|
||||
{
|
||||
parameter_update_s param_update;
|
||||
orb_copy(ORB_ID(parameter_update), _param_update_sub, ¶m_update);
|
||||
updateParams();
|
||||
|
||||
if (_navigation_mode) {
|
||||
_navigation_mode->updateParams();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -413,7 +418,6 @@ Navigator::task_main()
|
||||
|
||||
if (updated) {
|
||||
params_update();
|
||||
updateParams();
|
||||
}
|
||||
|
||||
/* vehicle control mode updated */
|
||||
|
||||
Reference in New Issue
Block a user