Can I get Remote Controller fly mode changes?
CompletedHi there,
I can get joystick values from remote controller with the code block down here. What about the flight mode changes. Can I get flight mode and how? I am using DJI Mavic Air 2 Remote Controller. Thank you.
func remoteController (_ rc: DJIRemoteController, didUpdate state: DJIRCHardwareState){
lh = Float(state.leftStick.horizontalPosition)/660;
lv = Float(state.leftStick.verticalPosition)/660;
rh = Float(state.rightStick.horizontalPosition)/660;
rv = Float(state.rightStick.verticalPosition)/660;
}
-
You could refer to below part of the IOS MSDK sample about getting the remote controller mode changes status. https://github.com/dji-sdk/Mobile-SDK-iOS/blob/master/Sample%20Code/ObjcSampleCode/DJISdkDemo/Demo/RemoteController/RCHardwareState/RCHardwareStateViewController.m ![](https://djisdksupport.zendesk.com/attachments/token/XVeNLtIJaqttjgKMAqTDj6tNx/?name=inline819570487.png) https://developer.dji.com/api-reference/ios-api/Components/RemoteController/DJIRemoteController.html?search=djircflightmodeswitch&i=0djiremotecontroller_djiremotecontrollerflightmodeswitchposition_inline
Please sign in to leave a comment.
Comments
5 comments