mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
The initial idea of the flight task architecture was that a task can freely set it's setpoints and doesn't have to worry about takeoff and landing. It would just takeoff when it's landed and there's a setpoint to go up and land when it puts a setpoint that pushes into the ground. With the takeoff logic there are some significant interface problems depending on the way a task is implemented: From the setpoint is not high enough to trigger to an unexpected takeoff because of some estimator fluctuation affecting the setpoint. It's easiest to solve this by allowing the task to determine when a takeoff is triggered. If no condition is implemented by default a task is not allowing a takeoff and cannot be used to get the vehicle off the ground.
14 lines
512 B
Plaintext
14 lines
512 B
Plaintext
# Local setpoint constraints in NED frame
|
|
# setting something to NaN means that no limit is provided
|
|
|
|
uint64 timestamp # time since system start (microseconds)
|
|
|
|
float32 yawspeed # in radians/sec
|
|
float32 speed_xy # in meters/sec
|
|
float32 speed_up # in meters/sec
|
|
float32 speed_down # in meters/sec
|
|
float32 tilt # in radians [0, PI]
|
|
float32 min_distance_to_ground # in meters
|
|
float32 max_distance_to_ground # in meters
|
|
bool want_takeoff # tell the controller to initiate takeoff when idling (ignored during flight)
|