Hi there,
I'm quite new to swift and the DJI SDK so i was wondering how to utilize data sent from the camera's sate updates. Currently what I have is this:
func camera(_ camera: DJICamera, didUpdate systemState: DJICameraSystemState) {
cameraState = systemState }
Essentially what I'm doing is every time a state update is recieved and the delegate method is called, I'm copying the ref value into another variable outside the main view controller. Is there a better way to do this?
BTW, similarly, I'm doing the same thing for flight controller state updates:
func flightController(_ fc: DJIFlightControlle, didUpdate state: DJIFlightControllerState) {
stateController = state
}
|