groupgets / purethermal1-firmware

Reference firmware for PureThermal 1 FLIR Lepton Dev Kit
MIT License
125 stars 62 forks source link

Need to FFC on python #25

Closed panudet-24mb closed 4 years ago

panudet-24mb commented 4 years ago

I try to FFC the Lepton 3.5 but the problem said that Segmentation fault (core dumped)


def set_manual_ffc(devh):
LEP_SYS_FFC_SHUTTER_MODE_MANUAL = 512 + 60
set_extension_unit(devh,SYS_UNIT_ID,LEP_SYS_FFC_SHUTTER_MODE_MANUAL,16,32)

def call_extension_unit(devh, unit, control, data, size):
return libuvc.uvc_get_ctrl(devh, unit, control, data, size, 0x81)

def set_extension_unit(devh, unit, control, data, size):
return libuvc.uvc_set_ctrl(devh, unit, control, data, size, 0x81)

But they keep said that Segmentation fault (core dumped) Please . . . guide me thank you so much

kekiefer commented 4 years ago

Please search or consult the flir lepton group before raising a bug here. There are lots of posts like this. Here is one, where the problem was that the size should be specified in bytes (hint hint):

https://groups.google.com/forum/#!topic/flir-lepton/bL1ZrNdBcg8