diff --git a/src/Waypoint.cc b/src/Waypoint.cc
index dc9d3a6..33e0bf6 100644
--- a/src/Waypoint.cc
+++ b/src/Waypoint.cc
@@ -191,6 +191,16 @@ void Waypoint::setAction(MAV_CMD action)
{
if (this->action != action) {
this->action = action;
+
+ // Flick defaults according to WP type
+
+ switch (this->action) {
+ case MAV_CMD_NAV_TAKEOFF:
+ // We default to 15 degrees minimum takeoff pitch
+ this->param1 = 15.0;
+ break;
+ }
+
emit changed(this);
}
}
diff --git a/src/ui/mission/QGCMissionNavTakeoff.ui b/src/ui/mission/QGCMissionNavTakeoff.ui
index 7536c84..bf0aab4 100644
--- a/src/ui/mission/QGCMissionNavTakeoff.ui
+++ b/src/ui/mission/QGCMissionNavTakeoff.ui
@@ -32,7 +32,16 @@
5
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -296,7 +305,7 @@
false
-
+ heading
°
@@ -329,6 +338,9 @@
false
+
+ min. pitch
+
°