Skip to content

Commit

Permalink
corrected tailsitter actuator control outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman committed Nov 23, 2015
1 parent d5e06d9 commit 3f2935a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/modules/vtol_att_control/tailsitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,6 @@ void Tailsitter::update_vtol_state()
break;

case TRANSITION_FRONT_P2:
// NOT USED
// check if we have reached pitch angle to switch to FW mode
//if (_v_att->pitch <= PITCH_TRANSITION_FRONT_P2) {
// _vtol_schedule.flight_mode = FW_MODE;
//}
break;

case TRANSITION_BACK:
// failsafe into fixed wing mode
Expand Down Expand Up @@ -467,7 +461,7 @@ void Tailsitter::fill_actuator_outputs()
// NOTE: There is no mistake in the line below, multicopter yaw axis is controlled by elevon roll actuation!
_actuators_out_1->control[actuator_controls_s::INDEX_ROLL] =
_actuators_mc_in->control[actuator_controls_s::INDEX_YAW]; //roll elevon
_actuators_out_1->control[actuator_controls_s::INDEX_PITCH] = 0; //pitch elevon
_actuators_out_1->control[actuator_controls_s::INDEX_PITCH] = _actuators_mc_in->control[actuator_controls_s::INDEX_PITCH]; //pitch elevon
}

break;
Expand Down

0 comments on commit 3f2935a

Please sign in to comment.