vtol_attitude_control: hotfix, do not update parameters on every iteration

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman
2016-11-22 10:05:53 +01:00
committed by Julian Oes
parent 92a5db92a2
commit d77547e7e1
8 changed files with 13 additions and 16 deletions
+1 -4
View File
@@ -75,7 +75,7 @@ Tiltrotor::~Tiltrotor()
}
int
void
Tiltrotor::parameters_update()
{
float v;
@@ -128,8 +128,6 @@ Tiltrotor::parameters_update()
if (_params_tiltrotor.airspeed_trans < _params_tiltrotor.airspeed_blend_start + 1.0f) {
_params_tiltrotor.airspeed_trans = _params_tiltrotor.airspeed_blend_start + 1.0f;
}
return OK;
}
int Tiltrotor::get_motor_off_channels(int channels)
@@ -154,7 +152,6 @@ int Tiltrotor::get_motor_off_channels(int channels)
void Tiltrotor::update_vtol_state()
{
parameters_update();
/* simple logic using a two way switch to perform transitions.
* after flipping the switch the vehicle will start tilting rotors, picking up