mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user