Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Kits
  3. VOXL Flight Deck
  4. voxl-send-command not working to manually set exposure, gain on hires on flight deck

voxl-send-command not working to manually set exposure, gain on hires on flight deck

Scheduled Pinned Locked Moved VOXL Flight Deck
7 Posts 4 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m1baldwin
    Contributor
    wrote on last edited by
    #1

    I've been testing the voxl-send-command utility to see if I can tune the camera settings manually for the environment I plan to deploy the voxl flight deck into. I've configured the camera server to use the "modalai" auto_exposure_mode setting, and after I restarted the camera-server I expected to be able to control the exposure and gain of the hires camera. However, when I send the command to adjust those settings, I do not see a change in the image quality. The tool returns that it was successful to send the command to the /run/hires/mpa/control, but nothing happens.

    Here is my entry in the voxl-camera-server.conf for the hires camera:
    {
    "version": 0.2,
    "port_J2": {
    "name": "hires",
    "enabled": true,
    "type": "hires",
    "api": "hal3",
    "frame_rate": 10,
    "override_id": -1,
    "auto_exposure_mode": "modalai",
    "modal_ae_gain_min": 0,
    "modal_ae_gain_max": 1000,
    "modal_ae_gain_period": 2,
    "modal_ae_exposure_min_us": 100,
    "modal_ae_exposure_max_us": 33000,
    "modal_ae_exposure_period": 1,
    "modal_ae_exposure_offset": 8000,
    "modal_ae_desired_msv": 58,
    "modal_ae_k_p_ns": 32000,
    "modal_ae_k_i_ns": 20,
    "modal_ae_max_i": 250,
    "modal_ae_good_thresh": 3,
    "modal_ae_display_debug": false,
    "preview": {
    "enabled": true,
    "width": 1920,
    "height": 1080,
    "format": "nv21"
    },
    "video": {
    "enabled": false,
    "width": 1024,
    "height": 768,
    "format": "h265"
    },
    "snapshot": {
    "enabled": false,
    "width": 1024,
    "height": 768,
    "format": "jpg"
    }
    }

    Here are various screen shots trying to set the exposure and gain to different values; you will notice the image show in vlc doesn't change at all

    Screenshot from 2022-09-02 10-30-10.png
    Screenshot from 2022-09-02 10-29-59.png

    Ed SutterE 1 Reply Last reply
    0
    • M Offline
      M Offline
      m1baldwin
      Contributor
      wrote on last edited by
      #2

      @Eric-Katzfey Do you possibly have any ideas on this?

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hi,

        This was a known bug when running the camera with the ISP's Auto exposure, it's been fixed in the latest camera server that we're preparing to release.

        M 1 Reply Last reply
        0
        • ? A Former User

          Hi,

          This was a known bug when running the camera with the ISP's Auto exposure, it's been fixed in the latest camera server that we're preparing to release.

          M Offline
          M Offline
          m1baldwin
          Contributor
          wrote on last edited by
          #4

          @Alex-Gardner Thanks; you mention that is is the case when running the auto exposure through the ISP. I had configured it not to use it - I thought by using the "modalai" keyword for the auto_exposure_mode param - but maybe this is not working?

          Is there perchance a public backlog that people can check on to see if issues like this are known and being worked?

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Camera Server is in a bit of a funny place because we recently rewrote significant portions of it and fixed the bugs in that new repo, but generally speaking you can look at the changelog on the dev branch of each of our projects to see what we've been fixing recently (for example: camera server)

            Tamas Pal 0T 1 Reply Last reply
            1
            • ? A Former User

              Camera Server is in a bit of a funny place because we recently rewrote significant portions of it and fixed the bugs in that new repo, but generally speaking you can look at the changelog on the dev branch of each of our projects to see what we've been fixing recently (for example: camera server)

              Tamas Pal 0T Offline
              Tamas Pal 0T Offline
              Tamas Pal 0
              Regular
              wrote on last edited by
              #6

              @Alex-Gardner I am using stable branch currently and unable to fly a quad because of qvio NOT STATIONARY issue while taking off. any suggestion.. which branch should I use ?

              1 Reply Last reply
              0
              • M m1baldwin

                I've been testing the voxl-send-command utility to see if I can tune the camera settings manually for the environment I plan to deploy the voxl flight deck into. I've configured the camera server to use the "modalai" auto_exposure_mode setting, and after I restarted the camera-server I expected to be able to control the exposure and gain of the hires camera. However, when I send the command to adjust those settings, I do not see a change in the image quality. The tool returns that it was successful to send the command to the /run/hires/mpa/control, but nothing happens.

                Here is my entry in the voxl-camera-server.conf for the hires camera:
                {
                "version": 0.2,
                "port_J2": {
                "name": "hires",
                "enabled": true,
                "type": "hires",
                "api": "hal3",
                "frame_rate": 10,
                "override_id": -1,
                "auto_exposure_mode": "modalai",
                "modal_ae_gain_min": 0,
                "modal_ae_gain_max": 1000,
                "modal_ae_gain_period": 2,
                "modal_ae_exposure_min_us": 100,
                "modal_ae_exposure_max_us": 33000,
                "modal_ae_exposure_period": 1,
                "modal_ae_exposure_offset": 8000,
                "modal_ae_desired_msv": 58,
                "modal_ae_k_p_ns": 32000,
                "modal_ae_k_i_ns": 20,
                "modal_ae_max_i": 250,
                "modal_ae_good_thresh": 3,
                "modal_ae_display_debug": false,
                "preview": {
                "enabled": true,
                "width": 1920,
                "height": 1080,
                "format": "nv21"
                },
                "video": {
                "enabled": false,
                "width": 1024,
                "height": 768,
                "format": "h265"
                },
                "snapshot": {
                "enabled": false,
                "width": 1024,
                "height": 768,
                "format": "jpg"
                }
                }

                Here are various screen shots trying to set the exposure and gain to different values; you will notice the image show in vlc doesn't change at all

                Screenshot from 2022-09-02 10-30-10.png
                Screenshot from 2022-09-02 10-29-59.png

                Ed SutterE Offline
                Ed SutterE Offline
                Ed Sutter
                Regular
                wrote on last edited by
                #7

                @m1baldwin I think things will work as you expect if you first run voxl-send_command hires stop_ae. You may also need an update to the voxl-camera-server code, refer to this post.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups