Can't find the Camera.Key to report WaypointCameraZoomParam.setFocalLength
CompletedI have a V2 mission and am setting the focal length using the following:
WaypointCameraZoomParam.Builder()
.setFocalLength(sdkVersionOfFocusLength).build()
The code is working but I'd like to give visual feedback to the pilot and have tried the 3 keys that are said to report focal length but none appear to be correct, the key is never called.
Can anyone point me to the appropriate key that will report the information?
-
Firmware Version of Drone:03..0.0014 Firmware Version of RC: Firmware Version of H20T: MSDK version:4.16.1 The result of the test is that the focal length can be obtained normally with HYBRID_ZOOM_FOCAL_LENGTH. The test log file and test code are attached.Perhaps there is no value due to a faulty acquisition. You can refer to the code used for our tests. -
You confirmed this during a V2 mission flight? All my keys are initialized the same, and all other keys are reporting correctly so I am 100% certain the key connection is correct...
This is the listener, the log statement is never seen
private val zoomLevelKeyListener = KeyListener { _, o1 ->
logInfo("AircraftDataSourceImpl::zoomLevelKeyListener: $o1")
if (o1 is Int) {
zoomLevelMutableLiveData.postValue(o1)
}
} -
Yes, my previous tests were carried out on the M300. I also tested the keylistener on the M300 during the route V2 run and the result was also that the focal length was acquired properly. Can you get the value of other keys by the same form? If you have set up the listeners correctly, then it is possible that there is a problem with the fetching or output part. The application I used for my tests was MSDK SAMPLE. Here are the logs and the code used during my tests.
Please sign in to leave a comment.
Comments
10 comments