Simulating your own sensor


#1

The rangefinder sensor in ardupilot can be simulated with the sitl drone. I am wondering whether the same thing can be done with an external sensor . So the external sensor can also be tested by using it with the sitl drone


#2

I don’t know about the SITL, but you can probably with gazebo ros.


#3

Definitely possible. You just need a good working knowledge of the actual ardupilot firmware and then need to compile your custom ardupilot code.


#4

Thats interesting . i would like to know how a relative beginner in ardupilot but one who has knowledge in c++ can start if he wants to get a good grasp on the actual ardupilot source code. Thanks


#5

The SITL.cpp lives here…

The libraries folder contains code for devices that perhaps you can emulate.

It would be an interesting project to work on.