Skip to content

Camera Manager: Sometimes appears to expect a CAM_MODE parameter #7451

@olliw42

Description

@olliw42

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().

qgc-unknownfactcammode-01

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.

:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions