Navigator: Only update params as they change

This commit is contained in:
Lorenz Meier
2017-02-25 11:04:52 +01:00
parent ecb2511a7b
commit ad3d0391ab
8 changed files with 5 additions and 19 deletions
-2
View File
@@ -100,8 +100,6 @@ void FollowTarget::on_inactive()
void FollowTarget::on_activation()
{
updateParams();
_follow_offset = _param_tracking_dist.get() < 1.0F ? 1.0F : _param_tracking_dist.get();
_responsiveness = math::constrain((float) _param_tracking_resp.get(), .1F, 1.0F);