Commit e1deebcf authored by Don Gagne's avatar Don Gagne

Merge pull request #2348 from DonLakeFlyer/RealativeAlt

Fix altitude relative to home default
parents 226e5a20 b17cf44f
......@@ -112,6 +112,7 @@ MissionItem::MissionItem(QObject* parent)
// Need a good command and frame before we start passing signals around
_commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT);
_frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT);
_altitudeRelativeToHomeFact.setRawValue(true);
_setupMetaData();
_connectSignals();
......@@ -169,6 +170,7 @@ MissionItem::MissionItem(int sequenceNumber,
// Need a good command and frame before we start passing signals around
_commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT);
_frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT);
_altitudeRelativeToHomeFact.setRawValue(true);
_setupMetaData();
_connectSignals();
......@@ -223,6 +225,7 @@ MissionItem::MissionItem(const MissionItem& other, QObject* parent)
// Need a good command and frame before we start passing signals around
_commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT);
_frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT);
_altitudeRelativeToHomeFact.setRawValue(true);
_setupMetaData();
_connectSignals();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment