Skip to content
Snippets Groups Projects
Commit d6ef137e authored by Lorenz Meier's avatar Lorenz Meier
Browse files

VTOL att control: Fix status reporting

The transition state reporting was inverted because of a typo. Code analysis suggests this will only have an effect in manual transition.
parent 1141079a
No related branches found
No related tags found
No related merge requests found
......@@ -221,11 +221,11 @@ void Standard::update_vtol_state()
break;
case TRANSITION_TO_FW:
_vtol_mode = mode::TRANSITION_TO_MC;
_vtol_mode = mode::TRANSITION_TO_FW;
break;
case TRANSITION_TO_MC:
_vtol_mode = mode::TRANSITION_TO_FW;
_vtol_mode = mode::TRANSITION_TO_MC;
break;
}
}
......
......@@ -62,12 +62,13 @@ struct Params {
float fw_min_alt; // minimum relative altitude for FW mode (QuadChute)
};
// Has to match 1:1 msg/vtol_vehicle_status.msg
enum mode {
ROTARY_WING = 0,
FIXED_WING,
TRANSITION_TO_FW,
TRANSITION_TO_MC,
EXTERNAL
TRANSITION_TO_FW = 1,
TRANSITION_TO_MC = 2,
ROTARY_WING = 3,
FIXED_WING = 4,
EXTERNAL = 5
};
enum vtol_type {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment