Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support INAV8 alternate frskyIDs #141

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Don't be too concerned about the length of these instructions. The first two sec
1. If you `set frsky_pitch_roll = ON` on INAV v2.0.0+ (which I suggest) you can optionally change the following for clarification:
* Telemetry sensor `0430` (or `0008` with D-series receivers) can be changed to `Ptch`
* Telemetry sensor `0440` (or `0020` with D-series receivers) can be changed to `Roll`
1. **Don't** change `Tmp1` or `Tmp2` from Celsius to Fahrenheit! They're not temps (used for flight modes and GPS info)
1. Prior to INAV 8, **don't** change `Tmp1` or `Tmp2` from Celsius to Fahrenheit! They're not temps (used for flight modes and GNSS info)
1. For INAV 8 and later, the default is to use sensor IDs `0470` and `0480` for flight mode and GNSS data respectively. For convenience, the names `Mode` (for `0470`) and `GNSS` (for `0480`) can be set in the transmitter.
1. If you don't have a current sensor, you can optionally delete or rename the `Fuel` sensor so it doesn't show in Lua Telemetry

#### Install/Setup Lua Telemetry on Transmitter
Expand Down
4 changes: 2 additions & 2 deletions src/SCRIPTS/TELEMETRY/iNav/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ local data = {
txBattMax = general.battMax,
lang = string.lower(general.language),
voice = general.voice,
mode_id = getTelemetryId("Tmp1"),
rxBatt_id = getTelemetryId("RxBt") > -1 and getTelemetryId("RxBt") or getTelemetryId("BtRx"),
sat_id = getTelemetryId("Tmp2"),
mode_id = getTelemetryId("Mode") > -1 and getTelemetryId("Mode") or getTelemetryId("0470") > -1 and getTelemetryId("0470") or getTelemetryId("Tmp1"),
sat_id = getTelemetryId("GNSS") > -1 and getTelemetryId("GNSS") or getTelemetryId("0480") > -1 and getTelemetryId("0480") or getTelemetryId("Tmp2"),
gpsAlt_id = getTelemetryId("GAlt"),
gpsLatLon_id = getTelemetryId("GPS"),
hdg_id = getTelemetryId("Hdg"),
Expand Down
Loading