如何获取飞机的唯一标识,遥控器的唯一标识
Completed如何获取飞机的唯一标识,遥控器的唯一标识
-
飞控和遥控器是不同的组件,它们都继承了 BaseComponent,所以都可以调用 getSerialNumber 方法来获取序列号。 遥控器: **remoteController** = ((Aircraft) DJISampleApplication._getProductInstance_()).getRemoteController(); **remoteController**.getSerialNumber(**new** CommonCallbacks.CompletionCallbackWith() { @Override **public void** onSuccess(String s) { } @Override **public void** onFailure(DJIError djiError) { } }); 飞控: FlightController flightController = ((Aircraft) DJISampleApplication._getProductInstance_()).getFlightController(); flightController.getSerialNumber(**new** CommonCallbacks.CompletionCallbackWith() { @Override **public void** onSuccess(String s) { } @Override **public void** onFailure(DJIError djiError) { } }); 飞控的序列号可以当作飞机的唯一标识。
Please sign in to leave a comment.
Comments
4 comments