Hi all,
I'm currently working with a mutilated (by me) version of md_motion_detect and I am hoping to get some insight on how the file numbering system works. As of right now, I'm using the module to generate a stream of data from the live view image. I'm using this code to number and name the files:
sprintf(file+strlen(file),
TARGET_NAME,
"IMG_",
filenum,
".TIK");
filenum++;
However, this results in file number always being 0000 because "filenum" is instantiated at the top of the module every time md_motion_detect is called. Is there some way to grab the file number in the motion detect module? I know that you can't include platform.h.
Alternatively, can I grab the file number in a Lua script and then increment it? The issue with all of this is that the camera is never actually shooting because I'm not storing an actual "image," just the data from the live-view.
I'm totally new here, so I apologize if this post is misplaced and/or totally disorganized!