Multiple ( Rangefinder/ distance sensor ) Radar on px4 without companion

Hey,

I want to perform collision avoidance using radar in multiple direction. But I don’t know how to configure multiple radars for different ports and orientation. I do not want to use a companion computer for this. I would prefer detail steps on how to achieve this.

Info:
Using px4 1.15.0 on Cube orange with QGC.

Doe the radars allow individual I2C addressing?

I am using Ainstein US-D1 Standard Radar Altimeter. It only has UART and CAN interface.

@JulianOes is there a way to do this? can I create multiple Ainstein radar drivers to achieve this? Or is there any other solution?
I would really appreciate any help in this.

Ah, I assume you have to use CAN because you won’t have enough UARTs available, unless you build your own multiplexer.

So then the question is whether you can set up the radars to different CAN (DroneCAN?) ids, so that you can distinguish them.

@JulianOes I will look into the CAN ids. But before that i think i have 2-3 UART ports available which could be enough for me. In that case can create another Ainstein radar drivers to achieve this?

You would start the driver for each UART in that case, yes.

@JulianOes I replicated the the code in src/driver for uland radar. Do you know what else I am supposed to change in the source code? Are there any official steps?