# Lepton FFC Mode

**URL:** <https://forums.openmv.io/t/lepton-ffc-mode/1943>\
**Category:** OpenMV Boards\
**Created:** [September 25, 2020, 8:18am UTC](https://forums.openmv.io/t/lepton-ffc-mode/1943 "2020-09-25T08:18:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GL-ITC](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@GL-ITC](https://forums.openmv.io/u/GL-ITC)\
**Post date:** [September 25, 2020, 8:18am UTC](https://forums.openmv.io/t/lepton-ffc-mode/1943/1 "2020-09-25T08:18:58Z")

</div>

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](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:

```python
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.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 25, 2020, 4:17pm UTC](https://forums.openmv.io/t/lepton-ffc-mode/1943/2 "2020-09-25T16:17:00Z")

</div>

[https://github.com/openmv/openmv/blob/master/src/lepton/include/LEPTON\_SYS.h#L276](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)
