Browse Source

Fix warning in waypoint class

QGC4.4
Lorenz Meier 11 years ago
parent
commit
7e9c2bef8c
  1. 4
      src/Waypoint.cc

4
src/Waypoint.cc

@ -194,11 +194,9 @@ void Waypoint::setAction(MAV_CMD action) @@ -194,11 +194,9 @@ void Waypoint::setAction(MAV_CMD action)
// Flick defaults according to WP type
switch (this->action) {
case MAV_CMD_NAV_TAKEOFF:
if (this->action == MAV_CMD_NAV_TAKEOFF) {
// We default to 15 degrees minimum takeoff pitch
this->param1 = 15.0;
break;
}
emit changed(this);

Loading…
Cancel
Save