meshtastic / ATAK-Plugin

ATAK Plugin for sending CoT to IMeshService
GNU General Public License v3.0
118 stars 13 forks source link

Environment Metrics - report data without attached sensors #17

Open daskalovst opened 2 months ago

daskalovst commented 2 months ago

In the remarks section, there are Environment Metrics even if the node doesn't have an attached sensor. For instance, it might show "temperature 1.4E-45," which clearly indicates the measurement is 0, and "humidity 1.9612345E23," indicating a measurement outside the theoretically possible range.

Here are some proposals for improvement:

Include only available data dynamically in the remarks field. Round the values to appropriate tolerances based on datasheets of the sensors attached.

niccellular commented 2 months ago

PR's welcome.