<< return to Pixycam.com

What are all of the runprogArg variables?

The wiki lists a few options for the runprogArg command but what are all of the options? And what do 8 and 1 mean in this context?

The default command “runprogArg 8 1” puts Pixy in cooked mode (not a very intuitive command…) You can change this if you want to go into, say, raw video (“runprog 8”) or if you want to stay in the default program (no command).

Hello Scott,
The runprogArg currently only supports the single arg “1”.

So what’s really going on here? Pixy has 7 possible programs you can select upon power up – programs 1 through 7. There are 7 programs because Pixy’s program selector is so rudimentary – it cycles through the major colors red, orange, yellow… 1, 2, 3… to select the desired program. The current firmware only has two programs – the default color connected components program and the pan/tilt demo. Program 8 (hence the 8 in runprogArg 8 1) is always reserved for raw video. Right now, program 8 can take one numerical argument, which tells it which fourcc to return. With no argument, the video program will just return raw Bayer frames (fourcc=BA81). With the “1” argument, the video program returns Cooked Mode frames (fourcc=CMV2).

Hope this helps!

Edward

I see, thanks