Lepton FFC Mode

Hi,

Im just wondering if you can help me read/interpret the FFC settings from section 4.5.16 https://www.flir.com/globalassets/imported-assets/document/flir-lepton-software-interface-description-document.pdf.

I want to get the current settings and print them but I seem to be getting unusual values. The result I get is:

1,0,0,0,1,0,1737,0,180000,1.

The code I used to get this is:

data = sensor.ioctl(sensor.IOCTL_LEPTON_GET_ATTRIBUTE, 0x023C, 16)
shutterMode, shutterLockout, videoFreeze, ffcDesired, elapsedTime, desiredFFCperiod, explicitCmdToOpen, desiredFFCtempDelta, imminentDelay,A= struct.unpack("<HHHHIIHHII", data)

print(shutterMode)
print(shutterLockout)
print(videoFreeze)
print(ffcDesired)
print(elapsedTime)
print(desiredFFCperiod)
print(explicitCmdToOpen)
print(desiredFFCtempDelta)
print(imminentDelay)
print(A)

The value of 180000 is clearly the desiredFfcPeriod variable but according to my code its the imminent delay. I’m not sure what the rest represent. I suspect I am providing the wrong struct/wrong number of variables or something but I cannot figure it out.

Any help would be appreciated.

https://github.com/openmv/openmv/blob/master/src/lepton/include/LEPTON_SYS.h#L276

So:


shutterMode, shutterLockout, videoFreeze, ffcDesired, elapsedTime, desiredFFCperiod, explicitCmdToOpen, desiredFFCtempDelta, imminentDelay = struct.unpack("<IIIIIIIHH", data)