The way ArduPilot works is that once a device driver is implemented, it is usable in all ArduPilot vehicle types: Copter, Plane, Rover, etc and on all the over 300 supported flight controllers: CubeOrange+, Cube Yellow, Pixhawk 6c, etc.
So look at the existing codebase and the documentation and write a device driver with an architecture similar to the existing ones. It should be hardware independent and vehicle type independent.
hy there, thanks for the reply. yeah, i did write a driver similar to existing ones and tried building it and it worked . But to implement it by connecting the terrain rangerfinder (ZB005MN01) we should know the CAN frames right . im unable to get it since there’s no datasheet provided along with the rangefinder.
so i’ve tried using CAN sniffer to find out frames but all i get is only TX there’s no RX