Skip to content

Gremsy Vio with SDK 2.1.5 'Unknown parameter to get option' and 'not found.' when setting GB_MODE which depends on SETTING_TARGET #196

Open
@rayw-dronesense

Description

@rayw-dronesense

Environment

  • Sensor: Gresmy Vio
  • MAVSDK version 2.14.0 (fork with HTTPS fix)
  • MAVSDK-Java version 2.1.5

Camera definition contents:

https://github.com/Gremsy/Vio-Camera-Definition/releases/download/v2.0.3/vio_camera_f1_def.xml

        <parameter name="SETTING_TARGET" type="uint32" default="0">
            <description>Setting Target</description>
            <options>
                <option name="Camera Device" value="0">
                    <exclusions>
                        <exclude>GB_MODE</exclude>
                    </exclusions>
                </option>
                <option name="Gimbal Device" value="1">
                </option>
            </options>
        </parameter>
        <!-- Gimbal params -->
        <parameter name="GB_MODE" type="uint32" default="0">
            <description>Gimbal Mode</description>
            <options>
                <option name="OFF" value="0" />
                <option name="LOCK" value="1" />
                <option name="FOLLOW" value="2" />
                <option name="MAPPING" value="3" />
                <option name="RETURN HOME" value="4" />
            </options>
        </parameter>

Problem

When using camera.setSetting on GB_MODE this happens,

2024-12-17 12:45:09.478 13990-14420 Mavsdk                  com.dronesense.pilot.blue            W  Setting GB_MODE not found.
2024-12-17 12:45:09.478 13990-14420 Mavsdk                  com.dronesense.pilot.blue            E  Unknown parameter to get option: GB_MODE
2024-12-17 12:45:09.478 13990-14420 Mavsdk                  com.dronesense.pilot.blue            E  Could not get option value.

Calling camera.setSetting with SETTING_TARGET setting it to "1" works. It is only trying to set GB_MODE this error occurs.

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