here you go:
this wasn’t exactly trivial though. the mavlink rangefinder option has been added 2 yrs ago and obviously isn’t supported on current relase version anymore.
what i did was:
git checkout 2bf8277d32f432b86c9916a8a35724c1c9ec2077
set the required defines (hardware type, protocol etc) and, most importantly, uncomment:
#define MAVSENSORGPSACTIVE 5 and
#define MAVSENSOR173
code builds fine on current arduino.
for setup you’ll need to use GUI version 1.8, it’s in the respective git repo if you checkout the above hash. it’s pretty picky about using the matching GUI.
you’ll want to set the GPS altitude panel active (it isn’t by default). it will display rangefinder distance while GPS alt is below what you’ve set MAVSENSORGPSACTIVE to.
in you’r special rover usecase you might want to det this to a very high value as you want to keep displaying RNGF no matter what altitude.
cheers, basti.
