Skip to content

Commit 211789d

Browse files
authored
Merge pull request #141 from iNavFlight/inav_8_alternate_frskyIDs
support INAV8 alternate frskyIDs
2 parents 7a34563 + e2a7ffa commit 211789d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/Getting-Started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Don't be too concerned about the length of these instructions. The first two sec
2525
1. If you `set frsky_pitch_roll = ON` on INAV v2.0.0+ (which I suggest) you can optionally change the following for clarification:
2626
* Telemetry sensor `0430` (or `0008` with D-series receivers) can be changed to `Ptch`
2727
* Telemetry sensor `0440` (or `0020` with D-series receivers) can be changed to `Roll`
28-
1. **Don't** change `Tmp1` or `Tmp2` from Celsius to Fahrenheit! They're not temps (used for flight modes and GPS info)
28+
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)
29+
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.
2930
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
3031

3132
#### Install/Setup Lua Telemetry on Transmitter

src/SCRIPTS/TELEMETRY/iNav/data.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ local data = {
2525
txBattMax = general.battMax,
2626
lang = string.lower(general.language),
2727
voice = general.voice,
28-
mode_id = getTelemetryId("Tmp1"),
2928
rxBatt_id = getTelemetryId("RxBt") > -1 and getTelemetryId("RxBt") or getTelemetryId("BtRx"),
30-
sat_id = getTelemetryId("Tmp2"),
29+
mode_id = getTelemetryId("Mode") > -1 and getTelemetryId("Mode") or getTelemetryId("0470") > -1 and getTelemetryId("0470") or getTelemetryId("Tmp1"),
30+
sat_id = getTelemetryId("GNSS") > -1 and getTelemetryId("GNSS") or getTelemetryId("0480") > -1 and getTelemetryId("0480") or getTelemetryId("Tmp2"),
3131
gpsAlt_id = getTelemetryId("GAlt"),
3232
gpsLatLon_id = getTelemetryId("GPS"),
3333
hdg_id = getTelemetryId("Hdg"),

0 commit comments

Comments
 (0)