mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 23:53:34 +08:00
FlightModeManager: publish takeoff status
This commit is contained in:
committed by
Lorenz Meier
parent
b30bd7f589
commit
fbd64fbdd8
@@ -41,15 +41,16 @@
|
||||
|
||||
#include <lib/hysteresis/hysteresis.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <uORB/topics/takeoff_status.h>
|
||||
|
||||
using namespace time_literals;
|
||||
|
||||
enum class TakeoffState {
|
||||
disarmed = 0,
|
||||
spoolup,
|
||||
ready_for_takeoff,
|
||||
rampup,
|
||||
flight
|
||||
disarmed = takeoff_status_s::TAKEOFF_STATE_DISARMED,
|
||||
spoolup = takeoff_status_s::TAKEOFF_STATE_SPOOLUP,
|
||||
ready_for_takeoff = takeoff_status_s::TAKEOFF_STATE_READY_FOR_TAKEOFF,
|
||||
rampup = takeoff_status_s::TAKEOFF_STATE_RAMPUP,
|
||||
flight = takeoff_status_s::TAKEOFF_STATE_FLIGHT
|
||||
};
|
||||
|
||||
class Takeoff
|
||||
|
||||
Reference in New Issue
Block a user