yaapu / FrskyTelemetryScript

A LUA telemetry script and widget for the Horus X10(S),X12 and Taranis X9D+,X9E,QX7 and X-Lite radios using ArduPilot frsky passthru protocol
GNU General Public License v3.0
434 stars 140 forks source link

RSSI always uses connected 2.4ghz rx, even when RSSI sensor is deleted #65

Closed ItsMeAubey closed 4 years ago

ItsMeAubey commented 4 years ago

I am using https://github.com/zs6buj/MavlinkToPassthru in relay mode. Discovering sensors results in two RSSI sensors, one provided by M2P and one provided by my RXSR. If I delete the RXSR sensor, it is still used as the rssi source in the telemetry script, despite the only existing RSSI sensor being the one provided by M2P (instance 28). Confirmed by wrapping tin foil around my 2.4ghz antenna - rssi drops massively.

I tried rebooting all hardware and changing models to make sure it wasn't a caching issue. Issue persists.

yaapu commented 4 years ago

Hi, the script has no direct access to OpenTX rssi sensors, I simply use the getRssi() function, no idea why it would return a value not "there" anymore, doen't make sense at all!

ItsMeAubey commented 4 years ago

Apparently, the "rssi source" setting in the telemetry tab of opentx does more than just the rssi source for alarms.. oops.. configuration issue on my end. I'll add this to the docs for m2p.

yaapu commented 4 years ago

glad you solved it!

ItsMeAubey commented 4 years ago

Did #66 too to make sure nobody else misses this :)