Optical flow and sonar setting?

Hello, I have a question about optical flow.
I would like to use the sonar sensor in PX4 FLOW which I mount on pi xhawk 1.
How do I do that? Can you tell me how to configure it?
Use translator. I’m sorry and thank you.