Support for multiple optical flow sensors connected in the CAN port

Hi,

I want to connect multiple optical flow sensor in the CAN port of my pixracer(currently using the Hereflow sensor). I do not need to fuse the signals or anything like that, I really just need to get the message from both sensors and tell them apart by ID for example.

I see there is no support for multiple optical flow sensors, but I saw that there is a support for multiple rangefinders, so I wonder if I can use that code as a base to make the changes I need.

I would appreciate any possible help like:

Has anyone done this before ?
How can I get the sensor ID of the optical flow connected in the CAN port ?
Any general tip or advice for developing drivers. (I have never done this kind of programming before)

Thanks