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

ModalAI Forum

  1. ModalAI Support Forum
  2. Flight Core and Legacy VOXL
  3. 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 Unsolved Flight Core and Legacy VOXL
flight-deck
7 Posts 4 Posters 1.4k 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

                Reading along? Create a free ModalAI Forum account to join in.

                With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

                Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

                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