DJIGoHomeStatus
@interface DJIGoHomeStatus : NSObject
Class for smart go home status.
-
The estimated remaining time, in seconds, it will take the aircraft to go home with a 10% battery buffer remaining. This time includes landing the aircraft.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger remainingFlightTime;
-
The estimated time, in seconds, needed for the aircraft to go home from its current location.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger timeNeededToGoHome;
-
The estimated time, in seconds, needed for the aircraft to land from its current height. The time calculated will be for the aircraft to land, moving straight down, from its current height.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger timeNeededToLandFromCurrentHeight;
-
The estimated battery percentage, in the range of [0 - 100], needed for the aircraft to go home and have 10% battery remaining. This includes landing of the aircraft.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger batteryPercentageNeededToGoHome;
-
The battery percentage, in the range of [0 - 100], needed for the aircraft to land from its current height. The battery percentage needed will be for the aircraft to land, moving straight down, from its current height.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSUInteger batteryPercentageNeededToLandFromCurrentHeight;
-
The maximum radius, in meters, an aircraft can fly from its home location and still make it all the way back home based on certain factors including altitude, distance, battery, etc. If the aircraft goes out farther than the max radius, it will fly as far back home as it can and land.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) float maxRadiusAircraftCanFlyAndGoHome;
-
Returns whether the aircraft is requesting to go home. If the value of
aircraftShouldGoHome
is YES and the user does not respond after 10 seconds, the aircraft will automatically go back to its home location. This can be canceled at any time with thecancelGoHome
method (which will also clearaircraftShouldGoHome
). It is recommended that an alert view is shown to the user whenaircraftShouldGoHome
returns YES. During this time, the Remote Controller will beep.The flight controller calculates whether the aircraft should go home based on the aircraft’s altitude, distance, battery, etc.
The two main situations in which
aircraftShouldGoHome
will return YES are if the aircraft’s battery is too low or if the aircraft has flown too far away.Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL aircraftShouldGoHome;