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

    fc

    Instance of the flight controller for which the data will be updated.

    state

    Current 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

    fc

    Instance of the flight controller for which the data will be updated.

    data

    Data 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

    fc

    Instance of the flight controller for which the data will be updated.

    imuState

    DJIIMUState object.