Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw only works for first picture #10

Open
TheLastMutt opened this issue Oct 13, 2017 · 1 comment
Open

Raw only works for first picture #10

TheLastMutt opened this issue Oct 13, 2017 · 1 comment

Comments

@TheLastMutt
Copy link

Raw layer needs to be requested every time a picture is taken, otherwise it works only once after changing the setting. See comment in Raspistill.c:

// Same with raw, apparently need to set it for each capture, whilst port
// is not enabled

To activate raw every time it is needed, I just added this in RaspiMCmds.c:

      case im:
         if(cfg_val[c_raw_layer] == 1) {
           cam_set(c_raw_layer);
         }
         capt_img();
         break;

That seems to work for single capture. Timelapse probably needs something like this as well.

@roberttidey
Copy link
Owner

OK. Thanks for that. I don't use raw myself so hadn't noticed that setting raw as a camera parameter doesn't seem to persist in the MMAL.

I have put your logic at the top of the capt_img function instead of in commands as that means it will work for time lapse as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants