I don't have a solution for that either. I either do a test run without recording or I break off manually by looking at the peaking.
=return call_event_proc('FA.Create')=return call_event_proc('StartLogOut',-2,0x1000,0)=return call_event_proc('PrintFALensInfoData')=return call_event_proc('OutputLogToFile')download AdjLog.txt
=return call_event_proc('InitializeAdjustmentSystem')
While working on this https://chdk.setepontos.com/index.php?topic=14554.10 I noticed a EOS M cams have a function PrintFALensInfoData, which gets a bunch of lens related values and outputs them, One of the values AbsDisFar, which I believe is what we called focus_distance_upper elsewhere. Other include FocusPos and FocusPosSize, which seem like they might be relevant.If someone can do the following with chdkptp (or equivalent standalone Lua), I'd be interested to see the resulting AdjLog.txtCode: [Select]=return call_event_proc('FA.Create')=return call_event_proc('StartLogOut',-2,0x1000,0)=return call_event_proc('PrintFALensInfoData')=return call_event_proc('OutputLogToFile')download AdjLog.txtIf PrintFALensInfoData returns -1, you callCode: [Select]=return call_event_proc('InitializeAdjustmentSystem')and call PrintFALensInfoData again.You could call PrintFALensInfoData after setting focus to the ends of the available range.Other possibly relevant eventprocs are GetEFLensFocusPositionWithoutLensCom and GetEFLensFocusPositionWithLensComI think these should both return the position, and print it AdjLog.txt if enabled.
FileName A/AdjLog.txt BuffSize 4096Firmware Ver GM1.10DMar 18 2016 08:31:04---- FA LensInfo --- LensID : 0x1039 FocalLength : 0015 [mm] FL_Wide : 0015 [mm] FL_Tele : 0045 [mm] AbsDisFar : 0037 [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 : 0x19 FocusPosSize : 0x1f--------------------
Firmware Ver GM1.00AJun 26 2017 12:23:15---- FA LensInfo --- LensID : 0x103d FocalLength : 0018 [mm] FL_Wide : 0018 [mm] FL_Tele : 0150 [mm] AbsDisFar : 65535 [cm] AVEF : 0x26 AVO : 0x26 AVMAX : 0x50 LensType (0:EF 1:EFM) : 0x1 ExtenderType (0xFF:Non) : 0xff PO : 0x31 PO 0 : 0xcd PO 5 : 0xe6 PO 10 : 0xdc PO 15 : 0xde ZoomPos : 0x3f ZoomPosSize : 0x3f FocusPos : 0x0 FocusPosSize : 0x1f--------------------
Firmware Ver GM1.21AOct 15 2019 21:23:39---- FA LensInfo --- LensID : 0x1033 FocalLength : 0022 [mm] FL_Wide : 0011 [mm] FL_Tele : 0022 [mm] AbsDisFar : 0063 [cm] AVEF : 0x30 AVO : 0x30 AVMAX : 0x58 LensType (0:EF 1:EFM) : 0x1 ExtenderType (0xFF:Non) : 0xff PO : 0x31 PO 0 : 0xcb PO 5 : 0xd2 PO 10 : 0xd0 PO 15 : 0xd0 ZoomPos : 0x0 ZoomPosSize : 0x3f FocusPos : 0xc FocusPosSize : 0x1f--------------------
If PrintFALensInfoData returns -1, you callCode: [Select]=return call_event_proc('InitializeAdjustmentSystem')and call PrintFALensInfoData again.
ERROR: a script is already runningERROR: not connected
Sorry, not in a position to help on this, but I hope others can.
Quote from: pigeonhill on 27 / June / 2022, 01:42:59Sorry, not in a position to help on this, but I hope others can.You can run attached script
Glad you found a workaround. A couple of notes:2) Zadig (https://zadig.akeo.ie/) may be more convenient than the configurator included with libusb (It's required on windows 10, where it pretty much seems to Just Work for me. I haven't had a 7 install for many years so I don't know how it works there.)
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