Batteryinfo through uavcan

Hi, If we want to send batteryinfo through uavcan using ap_battmoitor_uavcan what are the changes that should be done in hwdef.dat file
Is writing AP_BATTERY_UAVCAN_BATTERYINFO_ENABLED in hwdef required or we have to do any changes to the source file

I would also like an answer to this as I am working on the same thing.

If you figured it out please let me know