Julian Oes 7229ec2a37 Move throttle check from land detector to posctrl
This commit is an attempt to fix a race condition happening on takeoff
between the land detector and the multicopter position controller.

Previously, an auto-takeoff leads to the following events:

1. A takeoff setpoint is given.
2. The thrust setpoint spikes because we don't enter smooth takeoff yet.
3. The land detector detects a takeoff because of the high thrust.
4. The position controller sees the landed state transition and
   initiates the smooth takeoff. Thrust goes back down.
5. Depending on control gains the takeoff is successful or fails
   if the smoothing takes too long which causes thrust to be too low, so
   the land detector detects land again.

The two obvious problems with this are:
- The intermittent spike.
- The failed takeoff because of the smoothing leads to a delay..

With this change, the logic for a takeoff detection is moved from the
land detector to the position controller.

The events are now:

1. A takeoff setpoint is given.
2. The position controller detects the takeoff setpoint and initiates
   the smooth takeoff.
3. As thrust ramps up, the land detector detects the take off.

In the same way, we now detect the intent to takeoff in manual,
altitude, control, position control in the position controller instead
of in the land detector.
2017-10-09 19:05:15 +02:00
2017-09-29 10:13:51 -04:00
2016-07-29 11:05:01 +02:00
2016-10-19 15:31:54 +02:00
2017-10-05 09:34:14 -07:00
2017-10-09 02:13:43 -04:00
2017-09-29 10:13:51 -04:00
2017-08-14 17:03:06 -04:00
2017-09-29 10:13:51 -04:00
2017-07-30 19:18:49 +02:00
2017-01-02 10:14:41 +01:00
2017-09-29 10:13:51 -04:00
2017-09-29 10:13:51 -04:00
2015-06-12 08:30:50 +01:00
2017-10-09 02:38:57 -04:00
2015-07-13 14:52:39 -07:00
2017-09-29 10:13:51 -04:00
2016-01-01 21:21:49 +01:00

PX4 Pro Drone Autopilot

Releases DOI Build Status Coverity Scan

Slack Gitter

This repository holds the PX4 Pro flight control solution for drones, with the main applications located in the src/modules directory. It also contains the PX4 Drone Middleware Platform, which provides drivers and middleware to run drones.

Please refer to the user documentation and user forum for flying drones with the PX4 flight stack.

Weekly Dev Call

The PX4 Dev Team syncs up on a weekly dev call.

Developers

Maintenance Team

Supported Hardware

This repository contains code supporting these boards:

Project Milestones

The PX4 software and Pixhawk hardware (which has been designed for it) has been created in 2011 by Lorenz Meier.

S
Description
a mirror of official PX4-Autopilot
Readme BSD-3-Clause
587 MiB
Languages
C++ 51.2%
C 38.5%
CMake 4.7%
Python 3.9%
Shell 1.3%
Other 0.1%