Alarms

@objc(GSAlarms)
public protocol Alarms : Instrument

Instrument that informs about alarms.

This instrument can be retrieved by:

drone.getInstrument(Instruments.alarms)
  • Delay in seconds before the drone starts an automatic landing.

    The actual reason why automatic landing is scheduled depends on which of the following alarms is currently ‘on’ (i.e. .warning or .critical):

    • .automaticLandingBatteryIssue

    When one of those alarms is in such a state, then this method tells when automatic landing procedure is about to start. Otherwise (when all those alarms are .off), no automatic landing procedure is currently scheduled and this property consequently returns 0.

    Declaration

    Swift

    var automaticLandingDelay: TimeInterval { get }
  • Gets the alarm of a given kind.

    Declaration

    Swift

    func getAlarm(kind: Alarm.Kind) -> Alarm

    Parameters

    kind

    the kind of alarm to get

    Return Value

    the alarm