openmiko/ingenic_videocap

Documentation missing on some autonight params

Opened this issue · 4 comments

The j, w, 1, 2, and 3 params for autonight.c aren't documented in the usage(). I would add them myself, but I can't work out from the code their exact meanings.

I've taken a stab at them. Let me know if these look correct and I'll open a PR.

-1 <max_exposure> - The max_exposure required to turn night mode on
-2 <min_exposure>,<min_iridix>,<wait_seconds> - The min_exposure and min_iridix required to turn nightmode off. State must be maintained for wait_seconds to trigger.
-3 <min_white_balance>,<max_iridix>,<wait_seconds> - The min_white_balance and max_iridix required to switch nightmode off. State must be maintained for wait_seconds to trigger.
-j <jitter_percentage> - Percentage change in exposure to be considered too high for a gradual change in light to day/night, and therefore ignored.
-w <wait_seconds> - Number of seconds to wait after changing to/from nightmode before checking again.

Any ideas what "min_iridix" and "max_iridix" mean? Google is no help

Also it seems that the -w wait_seconds param is completely ignored, somehow. I've looked through the autonight.c code and it should respect it, but I've set mine to 15 and yet the moment that the exposure goes above the value in the -1 param, it switches.

Any ideas what "min_iridix" and "max_iridix" mean? Google is no help

No idea, sorry. I just went with the variable name in the code.

I've looked through the autonight.c code and it should respect it

I'm not sure about this either. You can try running it with -v to see some output. You can also set up the Openmiko build container. Once you pull the submodules in you'll find a submodules/ingenic_videocap directory where you can add debug code to autonight.c. Follow the rest of the build instructions and it will generate you a new demo.bin that can be flashed to a camera for testing.