RTL transition set constant

This commit is contained in:
sander
2016-02-06 23:28:23 +01:00
committed by Lorenz Meier
parent 9ad39fec67
commit 9e0c636b97
+1 -1
View File
@@ -380,7 +380,7 @@ MissionBlock::set_land_item(struct mission_item_s *item, bool at_current_locatio
if(_navigator->get_vstatus()->is_vtol){
struct vehicle_command_s cmd = {};
cmd.command = NAV_CMD_DO_VTOL_TRANSITION;
cmd.param1 = 3;
cmd.param1 = vehicle_status_s::VEHICLE_VTOL_STATE_MC;
if (_cmd_pub != nullptr) {
orb_publish(ORB_ID(vehicle_command), _cmd_pub, &cmd);
} else {