CopterMotors
public protocol CopterMotors : 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)
-
All motors currently undergoing some error.
Declaration
Swift
var motorsCurrentlyInError: Set<CopterMotor> { 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