UAVcan for a customized motor

I try to use the pixhawk 4 for an auv control. So I need to develop a ‘driver’ for a customized motor whose interface is can. I am a new guy, and can anywhere find the tutorial. thank you!!!