[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[dji-ios] 31 Components-FlightController

"
FlightController
	DJIFlightController
	DJIFlightControllerState
	DJILandingGear
	DJICompass
	DJIFlightAssistant
	DJIVisionTypes
	DJIIMUState
	DJIRTK
	DJISimulator
	DJICompassCalibrationState
	DJILandingGearStructs
	DJIFlightControllerBaseTypes
	DJISimulatorState
	DJISDKLocation
"

DJIFlightController buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIFlightController buildTypedGetters: #(
	#(landingGear DJILandingGear)
	#(compass DJICompass)
	#(RTK DJIRTK)
	#(flightAssistant DJIFlightAssistant)
	#(simulator DJISimulator)
)!
"DJIFlightController buildNumberGetters: #(
	IMUCount
)"!
DJIFlightController buildFunctions: #(
	#(setMaxFlightHeight:withCompletion: #(maxHeight _completion))
	#(getMaxFlightHeightWithCompletion: #(_completion))
	#(setMaxFlightRadius:withCompletion: #(maxRadius _completion))
	#(getMaxFlightRadiusWithCompletion: #(_completion))
	#(setMaxFlightRadiusLimitationEnabled:withCompletion: #(enabled _completion))
	#(getMaxFlightRadiusLimitationEnabledWithCompletion: #(_completion))
	isLandingGearMovable
	#(startTakeoffWithCompletion: #(_completion))
	#(cancelTakeoffWithCompletion: #(_completion))
	#(startLandingWithCompletion: #(_completion))
	#(cancelLandingWithCompletion: #(_completion))
	#(turnOnMotorsWithCompletion: #(_completion))
	#(turnOffMotorsWithCompletion: #(_completion))
	#(startGoHomeWithCompletion: #(_completion))
	#(cancelGoHomeWithCompletion: #(_completion))
	#(setHomeLocation:withCompletion: #(_homeLocation _completion))
	#(setHomeLocationUsingAircraftCurrentLocationWithCompletion: #(_completion))
	#(getHomeLocationWithCompletion: #(_completion))
	#(setGoHomeHeightInMeters:withCompletion: #(height _completion))
	#(getGoHomeHeightInMetersWithCompletion: #(_completion))
	#(setConnectionFailSafeBehavior:withCompletion: #(_behavior _completion))
	#(getConnectionFailSafeBehaviorWithCompletion: #(_completion))
	isOnboardSDKDeviceAvailable
	#(sendDataToOnboardSDKDevice:withCompletion: #(_data _completion))
	#(setGoHomeBatteryThreshold:withCompletion: #(percent _completion))
	#(getGoHomeBatteryThresholdWithCompletion: #(_completion))
	#(setLandImmediatelyBatteryThreshold:withCompletion: #(percent _completion))
	#(getLandImmediatelyBatteryThresholdWithCompletion: #(_completion))
	#(startIMUCalibrationWithCompletion: #(_completion))
	#(startIMUCalibrationForIndex:withCompletion: #(index _completion))
	#(confirmLandingWithCompletion: #(_completion))
	#(setLEDsEnabled:withCompletion: #(enabled _completion))
	#(getLEDsEnabledWithCompletion: #(_completion))
	#(setControlMode:withCompletion: #(mode _completion))
	#(getControlModeWithCompletion: #(_completion))
	#(setTripodModeEnabled:withCompletion: #(enabled _completion))
	#(getTripodModeEnabledWithCompletion: #(_completion))
	#(setTerrainFollowModeEnabled:withCompletion: #(enabled _completion))
	#(getTerrainFollowModeEnabledWithCompletion: #(_completion))
	#(setAutoQuickSpinEnabled:withCompletion: #(enabled _completion))
	#(getAutoQuickSpinEnabledWithCompletion: #(_completion))
	#(getRCSwitchFlightModeMappingWithCompletion: #(_completion))
	#(setVisionAssistedPositioningEnabled:withCompletion: #(enabled _completion))
	#(getVisionAssistedPositioningEnabledWithCompletion: #(_completion))
	isVirtualStickControlModeAvailable
	#(setVirtualStickModeEnabled:withCompletion: #(enabled _completion))
	#(getVirtualStickModeEnabledWithCompletion: #(_completion))
	#(sendVirtualStickFlightControlData:withCompletion: #(_controlData _completion))
)!
DJIFlightController buildNumberAccessors: #(
	verticalControlMode rollPitchControlMode
	yawControlMode rollPitchCoordinateSystem
)!
DJIFlightController buildBooleanAccessors: #(
	isVirtualStickAdvancedModeEnabled
)!
DJIFlightController buildFunctions: #(
	#(setFlightOrientationMode:withCompletion: #(type _completion))
	#(lockCourseUsingCurrentHeadingWithCompletion: #(_completion))
)!

DJIFlightControllerState buildNumberGetters: #(
	satelliteCount
	velocityX velocityY velocityZ
	altitude
	takeoffLocationAltitude
	batteryThresholdBehavior
	flightTimeInSeconds
	flightMode
	goHomeAssessment
	goHomeExecutionState
	goHomeHeight
	orientationMode
	GPSSignalLevel
	ultrasonicHeightInMeters
)!
DJIFlightControllerState buildTypedGetters: #(
	#(homeLocation CLLocationCoordinate2D)
	#(aircraftLocation CLLocationCoordinate2D)
)!

"ToDo
#pragma mark DJIAttitude
typedef struct
{
double pitch;
double roll;
double yaw;
} DJIAttitude;
@property(nonatomic, readonly) DJIAttitude attitude;
"
DJIFlightControllerState buildBooleanGetters: #(
	isFlying
	isMultipleModeOpen
	isFailsafeEnabled
	isIMUPreheating
	isUltrasonicBeingUsed
	doesUltrasonicHaveError
	isVisionPositioningSensorBeingUsed
	areMotorsOn
	isHomeLocationSet
	isLandingConfirmationNeeded
	hasReachedMaxFlightHeight
	hasReachedMaxFlightRadius
)!
DJIFlightControllerState buildGetters: #(
	flightModeString
)!

DJILandingGear buildNumberGetters: #(
	state mode
)!
DJILandingGear buildFunctions: #(
	#(setAutomaticMovementEnabled:withCompletion: #(enabled _completion))
	#(getAutomaticMovementEnabledWithCompletion: #(_completion))
	#(enterTransportModeWithCompletion: #(_completion))
	#(exitTransportModeWithCompletion: #(_completion))
	#(retractWithCompletion: #(_completion))
	#(deployWithCompletion: #(_completion))
)!

DJICompass buildNumberGetters: #(
	heading calibrationState
)!
DJICompass buildBooleanGetters: #(
	hasError isCalibrating
)!
DJICompass buildFunctions: #(
	#(startCalibrationWithCompletion: #(_completion))
	#(stopCalibrationWithCompletion: #(_completion))
)!

DJIFlightAssistant buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIFlightAssistant buildFunctions: #(
	#(setCollisionAvoidanceEnabled:withCompletion: #(enabled _completion))
	#(getCollisionAvoidanceEnabledWithCompletion: #(_completion))
	#(setPrecisionLandingEnabled:withCompletion: #(enabled _completion))
	#(getPrecisionLandingEnabledWithCompletion: #(_completion))
	#(setLandingProtectionEnabled:withCompletion: #(enabled _completion))
	#(getLandingProtectionEnabledWithCompletion: #(_completion))
	#(setActiveObstacleAvoidanceEnabled:withCompletion: #(enabled _completion))
	#(getActiveObstacleAvoidanceEnabledWithCompletion: #(_completion))
	#(setUpwardsAvoidanceEnabled:withCompletion: #(enabled _completion))
	#(getUpwardsAvoidanceEnabledWithCompletion: #(_completion))
)!

DJIIMUState buildNumberGetters: #(
	index gyroscopeState accelerometerState
	calibrationProgress calibrationState
	multipleOrientationCalibrationHint
)!

DJIRTKReceiverInfo buildNumberGetters:#(
	satelliteCount
)!
DJIRTKReceiverInfo buildBooleanGetters:#(
	isConstellationSupported
)!

DJIRTKState buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJIRTKState buildTypedGetters: #(
	#(error NSError)
	#(mobileStationReceiver1GPSInfo DJIRTKReceiverInfo)
	#(mobileStationReceiver1BeiDouInfo DJIRTKReceiverInfo)
	#(mobileStationReceiver1GLONASSInfo DJIRTKReceiverInfo)
	#(mobileStationReceiver2GPSInfo DJIRTKReceiverInfo)
	#(mobileStationReceiver2BeiDouInfo DJIRTKReceiverInfo)
	#(mobileStationReceiver2GLONASSInfo DJIRTKReceiverInfo)
	#(baseStationReceiverGPSInfo DJIRTKReceiverInfo)
	#(baseStationReceiverBeiDouInfo DJIRTKReceiverInfo)
	#(baseStationReceiverGLONASSInfo DJIRTKReceiverInfo)
	#(mobileStationLocation CLLocationCoordinate2D)
	#(baseStationLocation CLLocationCoordinate2D)
)!
DJIRTKState buildNumberGetters:#(
	positioningSolution
	mobileStationAltitude
	baseStationAltitude
	heading
)!

DJIRTK buildBooleanGetters:#(
	isHeadingValid isRTKEnabled
	isRTKBeingUsed isConnected
)!
DJIRTK buildFunctions: #(
	#(setRTKEnabled:withCompletion: #(enabled _completion))
)!

DJISimulator buildTypedAccessors: #(
	#(delegate NSObject)
)!
DJISimulator buildBooleanGetters: #(
	isSimulatorActive
)!
DJISimulator buildFunctions: #(
	#(startWithLocation:updateFrequency:GPSSatellitesNumber:withCompletion: #(_location frequency number _completion))
	#(stopWithCompletion: #(_completion))
	#(setFlyZoneLimitationEnabled:withCompletion: #(enabled _completion))
	#(getFlyZoneLimitationEnabledWithCompletion: #(_completion))
)!

DJISimulatorState buildTypedGetters: #(
	#(location CLLocationCoordinate2D)
)!
DJISimulatorState buildBooleanGetters: #(
	areMotorsOn isFlying
)!
DJISimulatorState buildNumberGetters: #(
	pitch roll yaw
	positionX positionY positionZ
)!

DJISDKLocation buildFunctions: #(
	#(locationWithLatitude:longitude:altitude: #(latitude longitude altitude))
	#(locationWithCoordinate: #(_coordinate))
)!

DJIObstacleDetectionSector buildNumberGetters: #(
	obstacleDistanceInMeters
	warningLevel
)!

DJIVisionDetectionState buildNumberGetters: #(
	position
	systemWarning
	obstacleDistanceInMeters
)!
DJIVisionDetectionState buildBooleanGetters: #(
	isSensorBeingUsed
)!
DJIVisionDetectionState buildTypedGetters: #(
	#(detectionSectors 'NSArray[DJIObstacleDetectionSector]')
)!

DJIVisionControlState buildBooleanGetters: #(
	isBraking
	isAscentLimitedByObstacle
	isAvoidingActiveObstacleCollision
	isPerformingPrecisionLanding
)!
DJIVisionControlState buildNumberGetters: #(
	landingProtectionState
)!

DJIIMUMultipleOrientationCalibrationHint buildGetters: #(
	orientationsToCalibrate
	orientationsCalibrated
)!
DJIIMUMultipleOrientationCalibrationHint buildNumberGetters: #(
	state
)!