mavlink EXTENDED_SYS_STATE initialize landed and vtol state

This commit is contained in:
Daniel Agar
2018-02-18 18:09:16 -05:00
committed by Lorenz Meier
parent 4e45d7959c
commit 2c7d45064e
+1 -4
View File
@@ -3720,7 +3720,7 @@ protected:
_msg()
{
_msg.vtol_state = MAV_VTOL_STATE_UNDEFINED;
_msg.landed_state = MAV_LANDED_STATE_UNDEFINED;
_msg.landed_state = MAV_LANDED_STATE_ON_GROUND;
}
bool send(const hrt_abstime t)
@@ -3770,9 +3770,6 @@ protected:
}
}
}
} else {
_msg.landed_state = MAV_LANDED_STATE_UNDEFINED;
}
}