Skip to content

Safety

Run the full preflight check suite against a single drone.

Parameters:

Name Type Description Default
connection_string str

MAVLink connection string (e.g. /dev/ttyUSB0).

required
drone_id str

Human-readable drone identifier.

required
min_battery_pct float

Minimum battery percentage to pass.

80.0

Returns:

Type Description
list[CheckResult]

List of :class:CheckResult instances (one per check).

Result of a single preflight check on one drone.

EMERGENCY: Command all drones to land immediately (controlled descent).

This is the default emergency action -- drones descend under flight- controller control, which is safer than a motor kill.

EMERGENCY: Force disarm ALL motors immediately.

Drones will fall from the sky. This is a LAST RESORT. Requires confirm=True to prevent accidental invocation.