-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
The camera manager appears to sometimes expect that the MAVLink camera has a CAM_MODE
parameter, which appears to be called when one switches between video and photo mode back and forth. In the following screen shot this are the Unknown Fact "CAM_MODE"
error messages, which follow a setVideoMode()
or setPhotoMode()
.
I could not yet figure out what exactly the conditions are for this to happen, there seems to be some history dependence. So I unfortunately can only report that this "sometimes" happens.
In the above example, the camera made use of a camera definition.xml file, which is hosted here: www.olliw.eu/drop/storm32mavcamera_default.xml. It has a DUMMY
parameter but no CAM_MODE
parameter. I did carefully read the spec, and I could not find a statement that if a xml file is used the camera must have a CAM_MODE
parameter (and such a spec would not make sense to me). This I can reproduce reliably.
I have seen this Unknown Fact "CAM_MODE"
error messages also in other circumstances, not only when a camera definition file is used, but I can't reproduce this on demand, i.e., this happens "sometimes".
As far as I can see, there are two situations: Either there shouldn't be a reliance on a CAM_MODE
parameter in which case the above would be a bug, or the reliance on a CAM_MODE
parameter is according to spec, in which case the spec documentation needs to be updated. I however also just may miss the point.
:)