Simulating drone with rangefinder

Hello all,

I am trying to simulate a drone with range finder as its way of finding its height (i.e no GPS). I am having a hard time in doing so. I have been trying to add a 1D LiDAR to the sdf model, but this is not great as I am not sure how it integrates into the firmware. I noticed that there are a couple of params

param set-default SENS_EN_GPSSIM 1
param set-default SENS_EN_BAROSIM 1
param set-default SENS_EN_MAGSIM 1

that simulate other sensors but cannot find the same for the rangefinder.

Any help would be greatly appreciated!

1 Like

Hi

Did you check the following page Distance Sensors (Rangefinders) | PX4 Guide (main)
Currently these are the supported range finders with px4