I have been using a modified version of the image_transfer_raw_as_the_controller_device example (and its corresponding remote version) in order to get a picture from both the remote and the controller device (2 OpenMV H7 cameras).
It works fine but, as soon as I try to get a snapshot on the controller device at the same time as I am getting the pic from the remote cam, I am getting a black image from the remote cam.
If I get the snapshot on the controller side before starting any communication with the remote cam, then everything is fine.
I have attached the code for the controller and the remote device. On the controller side, setting use_pin_synchro to True or False simulates the 2 situations:
- False: the pic is taken on the controller side before asking a pic to the remote cam: this works fine
- True: the pic is taken juste before getting the bytes from the remote cam.
The idea behind all this is to use a pin between the 2 cameras to synchronise perfectly the 2 snapshots. You can see several lines of codes that are currently commented in order to do so.
Could someone help me understanding what I am doing wrong here?
Thanks a lot!