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
  • 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 property automaticLandingDelay 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
  • Debug description.

    Declaration

    Swift

    public var description: String { get }
  • Set containing all possible kind of alarm.

    Declaration

    Swift

    public static let allCases: Set<Alarm.Kind>