adapted code for standard vtol to new structure in vtol_att_control_main

This commit is contained in:
tumbili
2015-08-07 13:22:50 +02:00
parent 5a6bcf3834
commit 17a92b51c7
2 changed files with 2 additions and 14 deletions
+1 -11
View File
@@ -214,16 +214,6 @@ void Standard::update_mc_state()
// do nothing
}
void Standard::process_mc_data()
{
fill_att_control_output();
}
void Standard::process_fw_data()
{
fill_att_control_output();
}
void Standard::update_fw_state()
{
// in fw mode we need the multirotor motors to stop spinning, in backtransition mode we let them spin up again
@@ -242,7 +232,7 @@ void Standard::update_external_state()
* Prepare message to acutators with data from mc and fw attitude controllers. An mc attitude weighting will determine
* what proportion of control should be applied to each of the control groups (mc and fw).
*/
void Standard::fill_att_control_output()
void Standard::fill_actuator_outputs()
{
/* multirotor controls */
_actuators_out_0->control[0] = _actuators_mc_in->control[0] * _mc_att_ctl_weight; // roll
+1 -3
View File
@@ -57,9 +57,7 @@ public:
void update_vtol_state();
void update_mc_state();
void process_mc_data();
void update_fw_state();
void process_fw_data();
void update_transition_state();
void update_external_state();
@@ -98,7 +96,7 @@ private:
float _mc_att_ctl_weight; // the amount of multicopter attitude control that should be applied in fixed wing mode while transitioning
float _airspeed_trans_blend_margin;
void fill_att_control_output();
void fill_actuator_outputs();
void set_max_mc(unsigned pwm_value);
int parameters_update();