mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
move takeoff state machine flight_mode_manager -> mc_pos_control
This commit is contained in:
committed by
Matthias Grob
parent
823c6078d9
commit
266ea377da
@@ -2,10 +2,11 @@
|
||||
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 TAKEOFF_STATE_DISARMED = 0
|
||||
uint8 TAKEOFF_STATE_SPOOLUP = 1
|
||||
uint8 TAKEOFF_STATE_READY_FOR_TAKEOFF = 2
|
||||
uint8 TAKEOFF_STATE_RAMPUP = 3
|
||||
uint8 TAKEOFF_STATE_FLIGHT = 4
|
||||
uint8 TAKEOFF_STATE_UNINITIALIZED = 0
|
||||
uint8 TAKEOFF_STATE_DISARMED = 1
|
||||
uint8 TAKEOFF_STATE_SPOOLUP = 2
|
||||
uint8 TAKEOFF_STATE_READY_FOR_TAKEOFF = 3
|
||||
uint8 TAKEOFF_STATE_RAMPUP = 4
|
||||
uint8 TAKEOFF_STATE_FLIGHT = 5
|
||||
|
||||
uint8 takeoff_state
|
||||
|
||||
@@ -3,15 +3,8 @@
|
||||
|
||||
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)
|
||||
bool reset_integral # tells controller to reset integrators e.g. since we know the vehicle is not in air
|
||||
float32 minimum_thrust # tell controller what the minimum collective output thrust should be
|
||||
|
||||
uint32 flight_task
|
||||
bool want_takeoff # tell the controller to initiate takeoff when idling (ignored during flight)
|
||||
|
||||
Reference in New Issue
Block a user