def set_manual_ffc(devh):
shutter_mode = create_string_buffer(16)
set_extension_unit(devh, SYS_UNIT_ID, 80, shutter_mode, 16) #set_extension_unit(devh, unit, control, data, size) control_id=(0x3D >> 2) + 1 =80contol_id =(0x3D >> 2)+1
=61>>2+1
=(00111101>>2)+1
=(01001111)+1
=(79)+1 =80
--
You received this message because you are subscribed to the Google Groups "Flir Lepton" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flir-lepton...@googlegroups.com.
Visit this group at https://groups.google.com/group/flir-lepton.
To view this discussion on the web visit https://groups.google.com/d/msgid/flir-lepton/89a98a23-94bb-4c86-a05f-c4bfc166f5c4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flir-lepton/CADjetuQdRtL_i3bG5rV%2BMpPXYvPFknwmgZ5PgXwW3vWraquTOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
True, Andrew. My idea is to augment, not replace.
To view this discussion on the web visit https://groups.google.com/d/msgid/flir-lepton/CADjetuQdRtL_i3bG5rV%2BMpPXYvPFknwmgZ5PgXwW3vWraquTOg%40mail.gmail.com.
My thoughts exactly. And it's a backup. :)
To view this discussion on the web visit https://groups.google.com/d/msgid/flir-lepton/CAN87Tdb%3D8eBuu2a7VdwQh5T%3DZrt-M%3D-QMotcXWDTgvueWNUYqg%40mail.gmail.com.
def set_manual_ffc(devh):
sizeData = 32
shutter_mode = create_string_buffer(sizeData)
#0x200 Module ID VID
#0x3C get
#0x3D set
getSDK = 0x3D
controlID = (getSDK >> 2) + 1 #formula from Kurt Kiefer
print('controlID: ' + str(controlID))
set_extension_unit(devh, SYS_UNIT_ID, controlID, shutter_mode, sizeData) #set_extension_unit(devh, unit, control, data, size)
print("Shutter Mode #: {0}".format(repr(shutter_mode.raw)))def perform_manual_ffc(devh):
sizeData = 2 #should be size 32 bytes?
shutter_mode = create_string_buffer(sizeData)
#0x200 Module ID VID
#0x3C get
#0x3D set
getSDK = 0x3D
runFFC = 0x42
controlID = (runFFC >> 2) + 1 #formula from Kurt Kiefer
print('controlID: ' + str(controlID))
set_extension_unit(devh, SYS_UNIT_ID, controlID, shutter_mode, sizeData) #set_extension_unit(devh, unit, control, data, size)
print("Shutter Mode #: {0}".format(repr(shutter_mode.raw)))def set_auto_ffc(devh):
sizeData = 4
shutter_mode = (c_uint16)(1)
#0x200 Module ID VID
#0x3C get
#0x3D set
getSDK = 0x3D
controlID = (getSDK >> 2) + 1 #formula from Kurt Kiefer
print('controlID: ' + str(controlID))
set_extension_unit(devh, SYS_UNIT_ID, controlID, byref(shutter_mode), sizeData) #set_extension_unit(devh, unit, control, data, size)
# Default Shutter Info: (1, 0, 0, 0, 1, 0, 1, 0, 48928)
# 1 shutterMode
# 0 tempLockoutState
# 0 videoFreezeDuringFFC
# 0 ffcDesired
# 1 elapsedTimeSinceLastFfc
# 0 desiredFfcPeriod
# True explicitCmdToOpen
# 0 desiredFfcTempDelta
# 48928 imminentDelay
# 48928 imminentDelayIf anyone can explain to me why desiredFfcPeriod doesn't return 180000 someday that would be great!
| def set_gain_auto(devh): | |
| sizeData = 4 | |
| gain_mode = (c_uint16)(2) #0=HIGH, 1=LOW, 2=AUTO | |
| setGainSDK = 0x49 | |
| controlID = (setGainSDK >> 2) + 1 #formula from Kurt Kiefer | |
| print('controlID: ' + str(controlID)) | |
| set_extension_unit(devh, SYS_UNIT_ID, controlID, byref(gain_mode), sizeData) #set_extension_unit(devh, unit, control, data, size) | |
| perform_manual_ffc(devh) |
| def set_auto_ffc(devh): | |
| sizeData = 32 | |
| shutter_mode = (c_uint16)(1) |
| getSDK = 0x3D | |
| controlID = (getSDK >> 2) + 1 #formula from Kurt Kiefer | |
| print('controlID: ' + str(controlID)) |
| set_extension_unit(devh, SYS_UNIT_ID, controlID, byref(sysShutterAuto), sizeData) |
Hey everyone (reposting this),Just an update that I have a pretty strong code here in the latest updates to Parabilis Thermal. https://github.com/Kheirlb/purethermal1-uvc-capture You can now change FFC and Gain Modes! If you flip through the settings too fast things do get crazy so be aware.A little strange, but these are the default settings for the lepton shutter which doesn't seem to correlate super well with the IDD but it works.# Default Shutter Info: (1, 0, 0, 0, 1, 0, 1, 0, 48928)
# 1 shutterMode
# 0 tempLockoutState
# 0 videoFreezeDuringFFC
# 0 ffcDesired
# 1 elapsedTimeSinceLastFfc
# 0 desiredFfcPeriod
# True explicitCmdToOpen
# 0 desiredFfcTempDelta
# 48928 imminentDelayIf anyone can explain to me why desiredFfcPeriod doesn't return 180000 someday that would be great!Thanks Kurt for all of the help!
<div style="background-color: transparent; border-bottom-color: rgb(34, 34, 34); border-bottom-style: none; border-bottom-width: 0px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: rgb(34, 34, 34); border-left-style: none; border-left-width: 0px; border-right-color: rgb(34, 34, 34); border-right-style: none; border-right-width: 0px; border-top-color: rgb(34, 34, 34); border-top-style: none; border-top-width: 0px; color: rgb(34, 34, 34); font-family: &q
Hey everyone (reposting this),Just an update that I have a pretty strong code here in the latest updates to Parabilis Thermal. https://github.com/Kheirlb/purethermal1-uvc-capture You can now change FFC and Gain Modes! If you flip through the settings too fast things do get crazy so be aware.A little strange, but these are the default settings for the lepton shutter which doesn't seem to correlate super well with the IDD but it works.# Default Shutter Info: (1, 0, 0, 0, 1, 0, 1, 0, 48928)
# 1 shutterMode
# 0 tempLockoutState
# 0 videoFreezeDuringFFC
# 0 ffcDesired
# 1 elapsedTimeSinceLastFfc
# 0 desiredFfcPeriod
# True explicitCmdToOpen
# 0 desiredFfcTempDelta
# 48928 imminentDelayIf anyone can explain to me why desiredFfcPeriod doesn't return 180000 someday that would be great!Thanks Kurt for all of the help!
<div style="background-color: transparent; border-bottom-color: rgb(34, 34, 34); border-bottom-style: none; border-bottom-width: 0px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: rgb(34, 34, 34); border-left-style: none; border-left-width: 0px; border-right-color: rgb(34, 34, 34); border-right-style: none; border-right-width: 0px; border-top-color: rgb(34, 34, 34); border-top-style: none; border-top-width: 0px; color: rgb(34, 34, 34); font-family: &q