# Voxl 2 Hires camera settings

Source: https://forum.modalai.com/topic/4509/voxl-2-hires-camera-settings
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2025-06-13 10:04:55 UTC by robertociuch
Replies: 4 · Views: 824

## robertociuch · 2025-06-13 10:04:55 UTC

Hi,
I'm working with an IMX412 on voxl 2, is there a way to manually set camera parameters like exposure time and gain? in my application I use an onboard light and the drone will always fly indoor in the same conditions, so I prefer to work with fixed parameters instead of letting the auto exposure do its things

Thank you in advance

## Reply by Alex Kushleyev (ModalAI staff) · 2025-06-13 15:34:42 UTC

@robertociuch,

Currently, you cannot set a fixed exposure and gain from `voxl-camera-server.conf` file. However, after camera server starts, you can send the following command to set the fixed exposure and gain:

```
voxl-send-command <name-of-output-stream> set_exp_gain <exposure_ms_float> <gain_int>
```

for example
```
voxl-send-command tracking set_exp_gain 20.0 100
```

The `name-of-output-stream` should match the pipe/stream name that you are using. Since there can be multiple streams for the same camera, you can use any stream to set this param.

We will add the ability to set constant exposure / gain to camera server in the future release.

Alex

## Reply by robertociuch · 2025-06-16 13:35:57 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev 

I tried 
voxl-send-command hires_small_color set_exp_gain 5.0 200

i receive the message "Successfully sent command to /run/mpa/hires_small_color/control" but I don't see any difference, in the voxl portal it continues to say "exposure: 26.916ms, gain: 800"

## Reply by Alex Kushleyev (ModalAI staff) · 2025-06-16 15:51:51 UTC (in reply to robertociuch)

@robertociuch , can you please check if voxl-camera-server prints any error messages when you do that?

Also, please make sure your auto exposure mode for that camera (ae_mode) is not set to “isp”, you can set it to “off”.

## Reply by robertociuch · 2025-06-17 10:38:51 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev 

I set the "ae_mode" to "off" and it works! 

thank you
