Skip to content

PrecTakeoffStatus (UORB message)

Precision takeoff status.

Published by: navigator (prec_takeoff.cpp). Subscribed by: vision_target_estimator, flight_mode_manager (FlightTaskAuto).

ONGOING while a vertical takeoff setpoint is active and MIS_TKO_PREC is set. DONE is published when the takeoff altitude is reached, then STOPPED once the takeoff is no longer active. Published every Navigator cycle.

TOPICS: prec_takeoff_status

Fields

NameTypeUnit [Frame]Range/EnumDescription
timestampuint64usTime since system start
stateuint8PREC_TAKEOFF_STATECurrent precision-takeoff state
setpoint_adjustedboolTrue after a valid target adjusted the horizontal setpoint

Enums

PREC_TAKEOFF_STATE

Used in field(s): state

NameTypeValueDescription
PREC_TAKEOFF_STATE_STOPPEDuint80Not active
PREC_TAKEOFF_STATE_ONGOINGuint81Takeoff active; the estimator may still be acquiring the target
PREC_TAKEOFF_STATE_DONEuint82Takeoff altitude reached

Source Message

Source file (GitHub)

Click here to see original file
c
# Precision takeoff status.
#
# Published by: navigator (prec_takeoff.cpp).
# Subscribed by: vision_target_estimator, flight_mode_manager (FlightTaskAuto).
#
# ONGOING while a vertical takeoff setpoint is active and MIS_TKO_PREC is set. DONE is published when the
# takeoff altitude is reached, then STOPPED once the takeoff is no longer active. Published every Navigator cycle.

uint64 timestamp # [us] Time since system start

uint8 state # [@enum PREC_TAKEOFF_STATE] Current precision-takeoff state
bool setpoint_adjusted # True after a valid target adjusted the horizontal setpoint
uint8 PREC_TAKEOFF_STATE_STOPPED = 0 # Not active
uint8 PREC_TAKEOFF_STATE_ONGOING = 1 # Takeoff active; the estimator may still be acquiring the target
uint8 PREC_TAKEOFF_STATE_DONE = 2 # Takeoff altitude reached