Every iteration I print out bright_tv and histo, to check it is working ok, which it is not.Bright_tv changes as expected, but the image exposure doesn't change, ie it looks like set_tv96_direct does not change the exposure. When I look at the images, they are all at the same exposure.
ev=-3press("shoot_half")repeat sleep(10) until get_shooting()tv96=get_tv96()repeat set_tv96_direct(tv96+ev*96) press("shoot_full_only") repeat sleep(10) until get_shot_ready() release("shoot_full_only") ev=ev+1until ev>3
Active area for G11 #define CAM_ACTIVE_AREA_X1 16 #define CAM_ACTIVE_AREA_Y1 8 #define CAM_ACTIVE_AREA_X2 3692 #define CAM_ACTIVE_AREA_Y2 2776
Based on the sample image from pigeonhill the G11 active area has the X1 and Y1 values swapped.I'll update SVN with the correct values.
I can confirm the latest build from lapser is stable and works as expected on the G11, ie histogram call, when NOT using set_shot_meter(1,1,1,99,99), works as expected, CHDK histogram data is zero when in need there is no image data there (according to RawDigger).
Got the shoot_full_only working and it's transformed my script, ie much faster!! Thanks.The 'secret' was to put the camera into continuous mode, ie it didn't work in single mode.
BTW I see I can test for what mode the camera is in (get_drive_mode), is there a way to set the mode in a script, ie a set_drive_mode function? I can see one on the scripting cross reference page.
press("shoot_half")repeat sleep(10) until get_shooting()single=get_drive_mode()~=1if(not single)then press("shoot_full_only") endrepeat if(single)then press("shoot_full_only") end repeat sleep(10) until get_shot_ready() -- waits for build_histogram -- if(single)then release("shoot_full_only") end..loop stuff hereuntil done
Doing the shoot_half allows the script to run in single shot mode. It also fixes an anomaly I had spotted between the G11 and S95, in that the S95 seemed to miss a shoot, but the G11 didn't.
I guess the S95 must have a different buffer set up, as on the G11, when the script finishes the camera is instantaneously 'freed up'. On the S95 I get the 'busy' message and the green light flashes for quite a few seconds after the images are captured.
I have set up a Canon Custom menu that ensures my script is set up correctly, eg MF, non-IS, fized WB, single shot etc.
BTW I still feel this auto feature would be a knock-out success if it featured in the trunk, ie select ++, --, +-+ or Auto.
Started by n6mod
Started by Graystar
General Help and Assistance on using CHDK stable releases
Started by mrblack51
Started by cantain
Started by Bernd R
General Discussion and Assistance