From 6634952a0c95b399d7884b9602886ce0a987561e Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 29 Oct 2015 07:54:38 +0100 Subject: [PATCH] removed unused vtol variables --- src/modules/vtol_att_control/tiltrotor.cpp | 2 -- src/modules/vtol_att_control/tiltrotor.h | 2 -- src/modules/vtol_att_control/vtol_att_control_main.h | 4 ---- 3 files changed, 8 deletions(-) diff --git a/src/modules/vtol_att_control/tiltrotor.cpp b/src/modules/vtol_att_control/tiltrotor.cpp index 300cf06e51..fe02db3984 100644 --- a/src/modules/vtol_att_control/tiltrotor.cpp +++ b/src/modules/vtol_att_control/tiltrotor.cpp @@ -47,8 +47,6 @@ Tiltrotor::Tiltrotor(VtolAttitudeControl *attc) : VtolType(attc), _rear_motors(ENABLED), _tilt_control(0.0f), -_roll_weight_mc(1.0f), -_yaw_weight_mc(1.0f), _min_front_trans_dur(0.5f) { _vtol_schedule.flight_mode = MC_MODE; diff --git a/src/modules/vtol_att_control/tiltrotor.h b/src/modules/vtol_att_control/tiltrotor.h index 859731266a..673bf3764f 100644 --- a/src/modules/vtol_att_control/tiltrotor.h +++ b/src/modules/vtol_att_control/tiltrotor.h @@ -130,8 +130,6 @@ private: }_vtol_schedule; float _tilt_control; /**< actuator value for the tilt servo */ - float _roll_weight_mc; /**< multicopter desired roll moment weight */ - float _yaw_weight_mc; /**< multicopter desired yaw moment weight */ const float _min_front_trans_dur; /**< min possible time in which rotors are rotated into the first position */ diff --git a/src/modules/vtol_att_control/vtol_att_control_main.h b/src/modules/vtol_att_control/vtol_att_control_main.h index 90d93823fc..a16c213982 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.h +++ b/src/modules/vtol_att_control/vtol_att_control_main.h @@ -187,10 +187,6 @@ private: param_t elevons_mc_lock; } _params_handles; - /* for multicopters it is usual to have a non-zero idle speed of the engines - * for fixed wings we want to have an idle speed of zero since we do not want - * to waste energy when gliding. */ - float _airspeed_tot; int _transition_command; VtolType * _vtol_type; // base class for different vtol types