DJIFlightControllerDelegate
@protocol DJIFlightControllerDelegate <NSObject>
This protocol provides delegate methods to update flight controller’s current state.
-
Callback function that updates the flight controller’s current state data. This method is called 10 times per second.
Declaration
Objective-C
- (void)flightController:(DJIFlightController *_Nonnull)fc didUpdateSystemState:(DJIFlightControllerCurrentState *_Nonnull)state;Parameters
fcInstance of the flight controller for which the data will be updated.
stateCurrent state of the flight controller.
-
Callback function that updates the data received from an external device (e.g. the onboard device). It is only supported for the Matrice 100.
Declaration
Objective-C
- (void)flightController:(DJIFlightController *_Nonnull)fc didReceiveDataFromExternalDevice:(NSData *_Nonnull)data;Parameters
fcInstance of the flight controller for which the data will be updated.
dataData received from an external device. The size of the data will not be larger than 100 bytes.
-
Update IMU State.
Declaration
Objective-C
- (void)flightController:(DJIFlightController *_Nonnull)fc didUpdateIMUState:(DJIIMUState *_Nonnull)imuState;Parameters
fcInstance of the flight controller for which the data will be updated.
imuStateDJIIMUState object.
View on GitHub
DJIFlightControllerDelegate Protocol Reference