# Simulating Distance Sensor

**URL:** <https://discuss.px4.io/t/simulating-distance-sensor/22239>\
**Category:** Pixhawk\
**Created:** [May 3, 2021, 7:44pm UTC](https://discuss.px4.io/t/simulating-distance-sensor/22239 "2021-05-03T19:44:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clovett](https://discuss.px4.io/user_avatar/discuss.px4.io/clovett/32/3458_2.png) [@clovett](https://discuss.px4.io/u/clovett)\
**Post date:** [May 3, 2021, 7:44pm UTC](https://discuss.px4.io/t/simulating-distance-sensor/22239/1 "2021-05-03T19:44:36Z")

</div>

Does PX4 support “simulated distance sensor” ? If so what messages do I send to PX4 ? I don’t see a HIL\_DISTANCE message…and if I send 132 DISTANCE\_SENSOR I get tons of errors from PX4 SITL saying “ERROR [ekf2] 4 - distance\_sensor lost, generation 162896 → 162898”…
