switch_recmode(1) -- switch to shooting modesleep(2000)set_aelock(1) -- disable auto exposureiso_sv96 = iso_to_sv96(100)set_sv96(iso_sv96) -- set ISO valuesleep(500)set_tv96_direct(800) -- set exposure time to 1/320th set_prop(props.WB_MODE,colorbalance) -- (0,1,2,3,4,5 = Auto, Day Light, Cloudy, Tungsten, Fluorescent, Fluorescent H)sleep(200) set_prop(props.IS_MODE, 3) -- IS_MODE offset_prop(props.AF_ASSIST_BEAM,0) -- AF assist off if supported for this cameraset_config_value(121,1) -- make sure USB remote is enabled set_aflock(1) -- stop camera from autofocusingset_prop(props.AF_LOCK,1) -- ???--- causes the Canon firmware to stop focusing when shooting--- does an initial focus measurement and sets focus at that value when calledset_mf(1) set_focus(focus_cm*100) -- focus in mmsleep(1000)press("shoot_half") -- prepare cam-- ... and here comes the loop that waits for the trigger via USB
-- prepare cam was better @ line 100 press("shoot_half")
The problem: the camera always chooses an exposure time that's way too long, and flash control (enable/disable) via script does not work properly, so I need to do that via the normal CHDK menu.
set_aelock(1) -- disable auto exposure
set_aflock(1) -- stop camera from autofocusingset_prop(props.AF_LOCK,1) -- ???--- causes the Canon firmware to stop focusing when shooting--- does an initial focus measurement and sets focus at that value when calledset_mf(1)
Code: [Select]set_aelock(1) -- disable auto exposureCHDK overrides are applied after Canon AE, so you should need AE lock if you are overriding all exposure parameters. Using this may be the cause of your unexpected behavior, since overrides in auto exposure mode expect to be applied at a certain point in the AE process.
QuoteCHDK overrides are applied after Canon AE, so you should need AE lock if you are overriding all exposure parameters. Using this may be the cause of your unexpected behavior, since overrides in auto exposure mode expect to be applied at a certain point in the AE process.OK, so this is correct as is - right?
CHDK overrides are applied after Canon AE, so you should need AE lock if you are overriding all exposure parameters. Using this may be the cause of your unexpected behavior, since overrides in auto exposure mode expect to be applied at a certain point in the AE process.
set_aelock(1) enables the lock, i.e. disables auto exposure. After that I set the exposure manually in the code.
Flash behaves opposite of what the manual says: set_prop(props.FLASH_MODE, 1) switches if off (should be on), set_prop(props.FLASH_MODE, 2) switches it on (should be off).
Sometimes exposure times are reported as 1/10th or 1/8th of a second by the OSD (neither are in the list of exposure times I set).
The camera also sporadically goes into "continuous fire" mode, i.e. after triggering it once via USB, it continues to take pictures (about one frame every 2 seconds) until I power it off. This is not reproducible, happens sporadically.
Are you certain that the USB power is actually switching in this case? If you turn on "Show Misc. Values" under Miscellaneous Settings -> Debug, the item labeled USB will show the USB power state.
Writing to props.FLASH_MODE via set_prop() sets the value as expected (as reading back shows), but it has no effect on camera behavior:
Started by LukeSkaff DSLR Hack development
Started by bondaree Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by Aket « 1 2 ... 21 22 » Feature Requests
Started by waterwingz Script Writing
Started by davoodt General Discussion and Assistance