AUTO - 32768PROGRAM - 32772PORTRAIT - 16399NIGHT SNAPSHOT - 16397KIDS N PETS - 16402INDOOR - 16403LOW LIGHT - 16417BEACH - 16407FOLIAGE - 16405SNOW - 16406SUNSET - 16404FIREWORKS - 16400LONG SHUTTER - 16390MOVIE - 2609
function mode_photo() printf("Switching to Photo Mode") set_capture_mode_canon(16402) -- Flash off set_prop(props.FLASH_MODE, 2) -- Focus Mode (0,1,3,4,5 = Normal, Macro, Infinity, Manual, Super Macro) set_prop(6, 3)end function take_photo(n) for i = 1,n do printf("photo #%3d", i) <-- Code reaches this point shoot() sleep(30000) endend
Here you are:Code: [Select]...FIREWORKS - 16400...
...FIREWORKS - 16400...
Also I tried set_capture_mode_canon(16402) but with no luck
printf("Switching to Photo Mode") capmode.set(16402) sleep(1000)
--[[@title Slaros intervalometer@param v Video length (secs)@default v 30@param p Pics between videos@default p 10--]]capmode=require("capmode")props=require("propcase")-- convert parameters into readable variable namesparam_video_length = vparam_num_pics = pfunction printf(...) print(string.format(...))endfunction mode_photo() printf("Switching to Photo Mode") -- KIDS N PETS set_capture_mode_canon(16402) sleep(500) -- Flash off set_prop(props.FLASH_MODE, 2) -- Focus Mode (0,1,3,4,5 = Normal, Macro, Infinity, Manual, Super Macro) set_prop(6, 3)end function take_photo(n) for i = 1,n do printf("photo #%4d", i) shoot() sleep(30000) endendfunction mode_video() printf("Switching to Video Mode") set_capture_mode_canon(2609) sleep(500)endfunction take_video (secs) -- start recording press("shoot_half") press("shoot_full") printf("Recording for %d secs", secs) sleep(secs*1000) -- stop recording release("shoot_full") press("shoot_full") sleep(1000) release("shoot_full") -- wait for SD. If video size is big it takes more than 1sec to get ready. printf("Waiting for SD..") repeat sleep(500) until get_movie_status() <= 1 printf("Ready")end--[[ main program ]]printf("Autonomous Camera Started")while true do -- Take photos mode_photo() take_photo(param_num_pics) -- Take video mode_video() take_video(param_video_length)end
I have chosen to autostart the script on boot.Result? Camera shuts down!
set_record(1)repeat sleep(50) until get_mode()
Started by mr_waiyawit General Help and Assistance on using CHDK stable releases
Started by dezza Feature Requests
Started by jannoon028 DryOS Development
Started by smirnov992 Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by tqft DryOS Development