Attached ROMLOG.LOG from Crash
ASSERT!! BrtMthd.c Line 4060...00226890: UI:LogicalEvent:0x000011b1:adr:0,Para:000227000: UI:LogicalEvent:0x000011b1:adr:0,Para:000227110: UI:LogicalEvent:0x000011b1:adr:0,Para:000227220: UI:LogicalEvent:0x000011b1:adr:0,Para:000227330: UI:LogicalEvent:0x000011b1:adr:0,Para:000227440: UI:LogicalEvent:0x000011b1:adr:0,Para:000227550: UI:LogicalEvent:0x000011b1:adr:0,Para:0
FocusPosSize : 0x1f
The value Code: [Select]FocusPosSize : 0x1fis that what we have already seen here:https://chdk.setepontos.com/index.php?topic=13756.msg140157#msg140157Only 31 distance values from near to far...
Quote from: c_joerg on 27 / June / 2022, 13:45:49The value Code: [Select]FocusPosSize : 0x1fis that what we have already seen here:https://chdk.setepontos.com/index.php?topic=13756.msg140157#msg140157Only 31 distance values from near to far...CheersGarry
M3M10M100_Focus.lua log told me, that fdl and fdu always change together toformer fdu = newer fdl.
Quote from: c_joerg on 27 / June / 2022, 12:16:52Attached ROMLOG.LOG from CrashI also got an assert (after half-shoot) on M100 while following the instructions, also BrtMthd.c. The cause might be prior execution of FA.Create and/or InitializeAdjustmentSystem.
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
--[[@title AdjLog_1@chdk_version 1.4--]]call_event_proc('FA.Create')call_event_proc('StartLogOut',-2,0x1000,0)call_event_proc('InitializeAdjustmentSystem')call_event_proc('PrintFALensInfoData')call_event_proc('GetEFLensFocusPositionWithoutLensCom')call_event_proc('GetEFLensFocusPositionWithLensCom')call_event_proc('OutputLogToFile')--call_event_proc('TerminateAdjustmentSystem')
Firmware Ver GM1.10DMar 18 2016 08:31:04---- FA LensInfo --- LensID : 0x1039 FocalLength : 0015 [mm] FL_Wide : 0015 [mm] FL_Tele : 0045 [mm] AbsDisFar : 0034 [cm] AVEF : 0x25 AVO : 0x25 AVMAX : 0x50 LensType (0:EF 1:EFM) : 0x1 ExtenderType (0xFF:Non) : 0xff PO : 0x23 PO 0 : 0x116 PO 5 : 0x102 PO 10 : 0x112 PO 15 : 0x10 ZoomPos : 0x3f ZoomPosSize : 0x3f FocusPos : 0x1a FocusPosSize : 0x1f--------------------EFLens FocusPosition : 37EFLens FocusPosition : 37 FileName A/AdjLog.txt BuffSize 4096Firmware Ver GM1.10DMar 18 2016 08:31:04---- FA LensInfo --- LensID : 0x1039 FocalLength : 0024 [mm] FL_Wide : 0015 [mm] FL_Tele : 0045 [mm] AbsDisFar : 65535 [cm] AVEF : 0x2a AVO : 0x2a AVMAX : 0x55 LensType (0:EF 1:EFM) : 0x1 ExtenderType (0xFF:Non) : 0xff PO : 0x36 PO 0 : 0xba PO 5 : 0xaf PO 10 : 0xb4 PO 15 : 0xb9 ZoomPos : 0x23 ZoomPosSize : 0x3f FocusPos : 0x0 FocusPosSize : 0x1f--------------------EFLens FocusPosition : 0EFLens FocusPosition : 0
press("shoot_half")sleep(2000)release("shoot_half")call_event_proc('TerminateAdjustmentSystem')
Can someone confirm if GetEFLensFocusPositionWithoutLensCom and GetEFLensFocusPositionWithLensCom return the same value as FocusPos? You should be able to just do likeCode: [Select]print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))If it returns -1, then it might need the FA.Create and/or InitializeAdjustmentSystem
call_event_proc('FA.Create')call_event_proc('InitializeAdjustmentSystem')call_event_proc("EFLensCom.FocusSearchNear")sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.MoveFocus",1,10)sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.MoveFocus",10,10)sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.MoveFocus",10,10)sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.FocusSearchFar")sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
-314-314-311-311-301-301-291-291633633
Quote from: reyalp on 27 / June / 2022, 17:32:55Can someone confirm if GetEFLensFocusPositionWithoutLensCom and GetEFLensFocusPositionWithLensCom return the same value as FocusPos? You should be able to just do likeCode: [Select]print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))If it returns -1, then it might need the FA.Create and/or InitializeAdjustmentSystemI have always to call both, otherwise i got -1.I am a bit confused. There were some inexplicable values. Sometimes with crashes.The following script on M3 with 15-45Code: [Select]call_event_proc('FA.Create')call_event_proc('InitializeAdjustmentSystem')call_event_proc("EFLensCom.FocusSearchNear")sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.MoveFocus",1,10)sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.MoveFocus",10,10)sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.MoveFocus",10,10)sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))call_event_proc("EFLensCom.FocusSearchFar")sleep(500)print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))print(call_event_proc('GetEFLensFocusPositionWithLensCom'))give this resultsCode: [Select]-314-314-311-311-301-301-291-291633633
Started by adcz « 1 2 3 » Forum related topics (including issues)
Started by acseven General Chat
Started by mattkime LUA Scripting
Started by masplin « 1 2 3 4 » General Discussion and Assistance
Started by rpriegu Script Writing