Browse Source

Plane: mode_qhover: combine enter and init

gps-1.3.1
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
5ebd439712
  1. 7
      ArduPlane/mode_qhover.cpp

7
ArduPlane/mode_qhover.cpp

@ -2,12 +2,6 @@ @@ -2,12 +2,6 @@
#include "Plane.h"
bool ModeQHover::_enter()
{
return plane.mode_qstabilize._enter();
}
// init quadplane hover mode
void ModeQHover::init()
{
// set vertical speed and acceleration limits
pos_control->set_max_speed_accel_z(-quadplane.get_pilot_velocity_z_max_dn(), quadplane.pilot_velocity_z_max_up, quadplane.pilot_accel_z);
@ -15,6 +9,7 @@ void ModeQHover::init() @@ -15,6 +9,7 @@ void ModeQHover::init()
quadplane.set_climb_rate_cms(0, false);
quadplane.init_throttle_wait();
return true;
}
void ModeQHover::update()

Loading…
Cancel
Save