Add `set_range` functionality for Ping360
Details discussed in a forum post:
[@EliotBR]
[@yuki] Can an effective range be set up in ping360.py?
The range per sample is determined by the
sample_period, so the total range is determined bysample_periodandnumber_of_samples, together with the speed of sound in the water you’re operating in (see here if you want to estimate it from vehicle data, and here for estimating salinity).If you want to make a
set_rangefunction, it may be worth looking at how it’s implemented in Ping Viewer 🙂
Speed of sound could either be set at the start (most user-friendly), or specified in the set_range function call (slightly simpler to implement)
Additional discussion/fleshing out the steps in this thread