Align IDE modules with custom firmware

Hi,
the MT9V034 sensor offers the “binning” mode to halve the size of an image while leaving the framesize unchanged.

To do this, I added a custom IOCTL_SET_BINNING that modifies the 0x0D register via I2C, I recompiled the FW successfully and I updated my RT1062 CAM.

I then wrote a simple py script that uses this ioct; the problem is that OpenMV IDE tells me that my IOCTL_SET_BINNING does not exist (obviously…) and even if I add it manually where the others ioctl are, an error is reported.

Question: is it possible to align the IDE’s modules (in my case sensor) with my custom FW?
Thanks a lot !!

Hi,

The IDE doesn’t care except for highlighting the code. The issue is that you didn’t add the IOCTL to the csi module itself so that it appears in python. See the py_csi.c module globals table near the bottom of the file.

Second, we already enable binning when you reduce the resolution of the MT9V034 module. There’s no need to add an IOCTL for this.