mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 05:03:34 +08:00
vtol_att_control: update parameter strings to class enum
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
#include "tiltrotor.h"
|
||||
#include "vtol_att_control_main.h"
|
||||
|
||||
#include <px4_param.h>
|
||||
|
||||
#define ARSP_YAW_CTRL_DISABLE 7.0f // airspeed at which we stop controlling yaw during a front transition
|
||||
|
||||
Tiltrotor::Tiltrotor(VtolAttitudeControl *attc) :
|
||||
@@ -56,10 +58,10 @@ Tiltrotor::Tiltrotor(VtolAttitudeControl *attc) :
|
||||
|
||||
_flag_was_in_trans_mode = false;
|
||||
|
||||
_params_handles_tiltrotor.tilt_mc = param_find("VT_TILT_MC");
|
||||
_params_handles_tiltrotor.tilt_transition = param_find("VT_TILT_TRANS");
|
||||
_params_handles_tiltrotor.tilt_fw = param_find("VT_TILT_FW");
|
||||
_params_handles_tiltrotor.front_trans_dur_p2 = param_find("VT_TRANS_P2_DUR");
|
||||
_params_handles_tiltrotor.tilt_mc = param_handle(px4::params::VT_TILT_MC);
|
||||
_params_handles_tiltrotor.tilt_transition = param_handle(px4::params::VT_TILT_TRANS);
|
||||
_params_handles_tiltrotor.tilt_fw = param_handle(px4::params::VT_TILT_FW);
|
||||
_params_handles_tiltrotor.front_trans_dur_p2 = param_handle(px4::params::VT_TRANS_P2_DUR);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user