GSCopterMotors

@objc
public protocol GSCopterMotors : Peripheral

CopterMotors peripheral interface for copter drones.

Allows to query the error status of each of the copter’s motors.

This peripheral can be retrieved by:

drone.getPeripheral(Peripherals.copterMotors)

Note

This protocol is for Objective-C only. Swift must use the protocol CopterMotors.
  • All motors currently undergoing some error.

    Declaration

    Swift

    var motorsWithCurrentError: Set<Int> { get }
  • Gets a motor’s latest error status.

    Declaration

    Swift

    func latestError(onMotor motor: CopterMotor) -> MotorError

    Parameters

    motor

    motor whose error must be retrieved

    Return Value

    latest error of the provided motor