function lens_cal() -- called at the start and when focal length changes: sets lens to MFD reset_lens = false call_event_proc('FA.Create') draw.clear() draw.replace(bar,"rectf",hdmi,0,hdmi+360,20,"black","black") draw.replace(cal,"string",hdmi+180-50,2,"Calibrating","white","black") draw.overdraw() call_event_proc('InitializeAdjustmentSystem') sleep(100) temp = call_event_proc('GetEFLensFocusPositionWithLensCom') repeat temp = call_event_proc('GetEFLensFocusPositionWithLensCom') sleep(50) call_event_proc("EFLensCom.FocusSearchFar") until temp == call_event_proc('GetEFLensFocusPositionWithLensCom') -- make sure we are at 'infinity' max_count = temp repeat -- to find some useful data call_event_proc("EFLensCom.MoveFocus", -1, 1) sleep(50) until get_focus_distance_lower() < 81910 -- lower data infinity far_count = call_event_proc('GetEFLensFocusPositionWithLensCom')+1 temp = call_event_proc('GetEFLensFocusPositionWithLensCom') repeat temp = call_event_proc('GetEFLensFocusPositionWithLensCom') sleep(50) call_event_proc("EFLensCom.FocusSearchNear") until temp == call_event_proc('GetEFLensFocusPositionWithLensCom') -- make sure we are at MFD near_count = call_event_proc('GetEFLensFocusPositionWithLensCom') MFD = get_focus_distance_lower() draw.clear()end
call_event_proc('InitializeAdjustmentSystem')
Finally found what is throwing things out.Code: [Select]call_event_proc('InitializeAdjustmentSystem')
If I pause before calling the above, the Canon and CHDK histograms respond as expected, ie as I change the shutter.
If I pause after calling the above, ie no other code has run,
I see the corrupted behaviour, ie the histogram freezes between arounf 1/30s to 4s.
So it looks like the above call is either wrong, inconplete or I'm calling it incorrectly.
The attached test script demonstrates the issue.
If run the Test script the histogram freezes inbetween about 1/30s and 2s. Either side the histogram responds as expected.
Also if you come out of ALT, with the script running, and take two images, but only change ISO, you will see the impact on the images. That is EXIF changed, but exposure hasn't. This is also the same if I capture those two images in the script.
Started by smilem General Help and Assistance on using CHDK stable releases
Started by Aket « 1 2 ... 21 22 » Feature Requests
Started by kmoreau893 General Discussion and Assistance
Started by waterwingz Script Writing
Started by saul_havens Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)