Commit b17cf44f authored by Don Gagne's avatar Don Gagne

Fix altitude relative to home default

parent b17d704c
...@@ -112,6 +112,7 @@ MissionItem::MissionItem(QObject* parent) ...@@ -112,6 +112,7 @@ MissionItem::MissionItem(QObject* parent)
// Need a good command and frame before we start passing signals around // Need a good command and frame before we start passing signals around
_commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT); _commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT);
_frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT); _frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT);
_altitudeRelativeToHomeFact.setRawValue(true);
_setupMetaData(); _setupMetaData();
_connectSignals(); _connectSignals();
...@@ -169,6 +170,7 @@ MissionItem::MissionItem(int sequenceNumber, ...@@ -169,6 +170,7 @@ MissionItem::MissionItem(int sequenceNumber,
// Need a good command and frame before we start passing signals around // Need a good command and frame before we start passing signals around
_commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT); _commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT);
_frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT); _frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT);
_altitudeRelativeToHomeFact.setRawValue(true);
_setupMetaData(); _setupMetaData();
_connectSignals(); _connectSignals();
...@@ -223,6 +225,7 @@ MissionItem::MissionItem(const MissionItem& other, QObject* parent) ...@@ -223,6 +225,7 @@ MissionItem::MissionItem(const MissionItem& other, QObject* parent)
// Need a good command and frame before we start passing signals around // Need a good command and frame before we start passing signals around
_commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT); _commandFact.setRawValue(MAV_CMD_NAV_WAYPOINT);
_frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT); _frameFact.setRawValue(MAV_FRAME_GLOBAL_RELATIVE_ALT);
_altitudeRelativeToHomeFact.setRawValue(true);
_setupMetaData(); _setupMetaData();
_connectSignals(); _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