Skip to content

TemperatureSensor: Add Rangefinder to the TEMPx_SRC sensor source options #31748

@ES-Alexander

Description

@ES-Alexander

Feature request

Is your feature request related to a problem? Please describe.
Rover (and hopefully soon Sub) make use of a WATER_DEPTH MAVLink message, which includes temperature data from a downward-facing rangefinder. Rangefinders don't always include temperature sensors (or they may not be super accurate), so it could be nice to be able to sub that in from a dedicated temperature sensor.

Describe the solution you'd like
Add a Rangefinder option to the temperature sensor source options, to allow the rangefinder driver temperature data to be overshadowed via the TEMPx_SRC parameters.

Describe alternatives you've considered

  1. The WATER_DEPTH message could automatically fall back to another temperature source if one is provided, but that either reliant on the rangefinder not providing temperature data, or makes it ambiguous as to what is being used
  2. The source could be specified as "water temperature" instead of specifically rangefinder, which could make it more broadly useful in future, but also makes it less clear when and where it's likely to be used.
  3. We could add dedicated MAVLink reporting for temperature sensors, and/or specifically for water temperature, which are both potentially good ideas, but then it's potentially unclear what source is being used for the temperature data in the WATER_DEPTH message

Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[x] Rover
[x] Submarine

Additional context
#31616 may be a good reference for the temperature sensor library side of things.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions