Kind
@objc(GSAlarmKind)
public enum Kind : Int, CustomStringConvertible
Kind of alarm.
-
The drone power is low.
Declaration
Swift
case power
-
Motors have been cut out.
Declaration
Swift
case motorCutOut
-
Emergency due to user’s request.
Declaration
Swift
case userEmergency
-
Motor error.
Declaration
Swift
case motorError
-
Battery is too hot.
Declaration
Swift
case batteryTooHot
-
Battery is too cold.
Declaration
Swift
case batteryTooCold
-
Battery gauge software update required.
Declaration
Swift
case batteryGaugeUpdateRequired
-
Battery authentication has failed.
Declaration
Swift
case batteryAuthenticationFailure
-
Battery poor connection.
Declaration
Swift
case batteryPoorConnection
-
Hovering is difficult due to a lack of GPS positioning and not enough light to use its vertical camera.
Declaration
Swift
case hoveringDifficultiesNoGpsTooDark
-
Hovering is difficult due to a lack of GPS positioning and drone is too high to use its vertical camera.
Declaration
Swift
case hoveringDifficultiesNoGpsTooHigh
-
Drone will soon forcefully and automatically land because some battery issue (e.g. low power, low or high temperature…) does not allow to continue flying safely.
When at level
.off
: battery is OK and no automatic landing is scheduled;.warning
: some battery issues have been detected, which will soon prevent the drone from flying safely. Automatic landing is scheduled;.critical
: battery issues are now so critical that the drone cannot continue flying safely. Automatic landing is about to start in a matter of seconds
Remaining delay before automatic landing begins (when scheduled both at
.warning
and.critical
levels), is accessible through the propertyautomaticLandingDelay
and the instrument is updated each time this value changes.Declaration
Swift
case automaticLandingBatteryIssue
-
Wind strength alters the drone ability to fly properly.
.off
: wind is not strong enough to have significant impact on drone flight..warning
: wind is strong enough to alter the drone ability to fly properly..critical
: wind is so strong that the drone is completely unable to fly.
Declaration
Swift
case wind
-
Vertical camera sensor alters the drone ability to fly safely.
.off
: No problem detected for the vertical camera.critical
: Problems with the vertical camera resulted in a deterioration of flight stabilization. Flying is not recommended.
Declaration
Swift
case verticalCamera
-
Vibrations alters the drone ability to fly properly.
.off
: detected vibration level is normal and has no impact on drone flight..warning
: detected vibration level is strong enough to alter the drone ability to fly properly, potentially because propellers are not tightly screwed..critical
: detected vibration level is so strong that the drone is completely unable to fly properly, indicating a serious drone malfunction.
Declaration
Swift
case strongVibrations
-
A magnetic element disturbs the drone’s magnetometer and alters the drone ability to fly safely.
Declaration
Swift
case magnetometerPertubation
-
The local terrestrial magnetic field is too weak to allow to fly safely.
Declaration
Swift
case magnetometerLowEarthField
-
Drone heading lock altered by magnetic perturbations.
.off
: magnetometer state allows heading lock..warning
: magnetometer detects a weak magnetic field (close to Earth pole), or a perturbed local magnetic field. Magnetometer has not lost heading lock yet..critical
: magnetometer lost heading lock.
Declaration
Swift
case headingLock
-
Propeller icing level.
Informs that drone propellers are iced, which results in a degraded flying behavior.
.ok
: the level of propeller icing is low or non-existent..warning
: the level of propeller icing begins to be too strong and can impact drone flying capacity..critical
: the level of propeller icing is high and will impact drone flying capacity and eventually damage motors.
Declaration
Swift
case icingLevel
-
Location information sent by the controller is unreliable.
Declaration
Swift
case unreliableControllerLocation
-
Drone started three motors flight as one motor is not currently working.
Declaration
Swift
case threeMotorsFlight
-
Drone is avoiding an obstacle and distance from nominal trajectory exceeds threshold.
Declaration
Swift
case highDeviation
-
Drone is stuck by a presumably large obstacle.
Declaration
Swift
case droneStuck
-
Obstacle avoidance is disabled because perception system is unplugged or not working properly.
Declaration
Swift
case obstacleAvoidanceDisabledStereoFailure
-
Obstacle avoidance is disabled because perception system lens is dirty or broken.
Declaration
Swift
case obstacleAvoidanceDisabledStereoLensFailure
-
Obstacle avoidance is disabled because gimbal is not stabilized in direction of motion.
Declaration
Swift
case obstacleAvoidanceDisabledGimbalFailure
-
Obstacle avoidance is disabled because environment is too dark for perception system or vertical camera.
Declaration
Swift
case obstacleAvoidanceDisabledTooDark
-
Obstacle avoidance is disabled because GPS and vertical camera do not provide reliable data.
Declaration
Swift
case obstacleAvoidanceDisabledEstimationUnreliable
-
Obstacle avoidance is disabled because perception system is not calibrated.
Declaration
Swift
case obstacleAvoidanceDisabledCalibrationFailure
-
Obstacle avoidance is available and enabled but in degraded mode due to strong wind.
Declaration
Swift
case obstacleAvoidanceStrongWind
-
Obstacle avoidance is available and enabled but in degraded mode due to poor gps.
Declaration
Swift
case obstacleAvoidancePoorGps
-
Obstacle avoidance is unavailable and disabled but failed to compute trajectories.
Declaration
Swift
case obstacleAvoidanceComputationalError
-
Obstacle avoidance is available and enabled but the perception system is blind in the current motion direction.
Declaration
Swift
case obstacleAvoidanceBlindMotionDirection
-
Obstacle avoidance is frozen. The drone does not respond to PCMD. Obstacle avoidance mode needs to be set to disabled for the drone to move again.
Declaration
Swift
case obstacleAvoidanceFreeze
-
Drone inclination is to high to fly safely.
Declaration
Swift
case inclinationTooHigh
-
Horizontal geofence reached.
Declaration
Swift
case horizontalGeofenceReached
-
Vertical geofence reached.
Declaration
Swift
case verticalGeofenceReached
-
Free fall detected.
Declaration
Swift
case freeFallDetected
-
Stereo camera is decalibrated.
Declaration
Swift
case stereoCameraDecalibrated
-
Propeller are critically iced, so forced landing auto trigger is planned.
Declaration
Swift
case automaticLandingPropellerIcingIssue
-
Battery is too hot, so forced landing auto trigger is planned.
Declaration
Swift
case automaticLandingBatteryTooHot
-
Battery is too cold, so forced landing auto trigger is planned.
Declaration
Swift
case automaticLandingBatteryTooCold
-
DRI is not functional.
Declaration
Swift
case driFailing
-
Video signal processing is not functional.
Declaration
Swift
case videoPipeline
-
Debug description.
Declaration
Swift
public var description: String { get }
-
Set containing all possible kinds of alarm.
Declaration
Swift
public static let allCases: Set<Kind>