You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of INAV SmartPort telemetry uses temperature sensor IDs for Modes and GNSS data. This causes issues on transmitter firmware that more strictly adhere to the telemetry ID's intended use. The Tmp sensors can't be converted to a different type, so they can't be read correctly.
This PR changes the IDs to some that are not associated with specific functions or types. There is also an option to use the legacy IDs to allow for a deprecation period. This legacy option should be removed in INAV 10.0.
Copy file name to clipboardExpand all lines: docs/Settings.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1162,6 +1162,16 @@ S.Port telemetry: Send pitch and roll degrees*10 instead of raw accelerometer da
1162
1162
1163
1163
---
1164
1164
1165
+
### frsky_use_legacy_gps_mode_sensor_ids
1166
+
1167
+
S.Port telemetry: If `ON`, send the legacy telemetry IDs for modes (Tmp1) and GNSS (Tmp2). These are old IDs, deprecated, and will be removed in INAV 10.0. Tools and scripts using these IDs should be updated to use the new IDs of **470** for Modes and **480** for GNSS. Default: 'OFF'
1168
+
1169
+
| Default | Min | Max |
1170
+
| --- | --- | --- |
1171
+
| OFF | OFF | ON |
1172
+
1173
+
---
1174
+
1165
1175
### fw_autotune_max_rate_deflection
1166
1176
1167
1177
The target percentage of maximum mixer output used for determining the rates in `AUTO` and `LIMIT`.
Copy file name to clipboardExpand all lines: docs/Telemetry.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,17 +102,21 @@ The following sensors are transmitted
102
102
***VSpd** : vertical speed, unit is cm/s.
103
103
***Hdg** : heading, North is 0°, South is 180°.
104
104
***AccX,Y,Z** : accelerometer values (not sent if `frsky_pitch_roll = ON`).
105
-
***Tmp1** : flight mode, sent as 5 digits. Number is sent as **ABCDE** detailed below. The numbers are additives (for example: if digit C is 6, it means both position hold and altitude hold are active) :
105
+
***470** : flight mode, sent as 5 digits. Number is sent as **ABCDE** detailed below. The numbers are additives (for example: if digit C is 6, it means both position hold and altitude hold are active) :
***E** : 1 = ok to arm, 2 = arming is prevented, 4 = armed
111
-
***Tmp2** : GPS lock status, accuracy, home reset trigger, and number of satellites. Number is sent as **ABCD** detailed below. Typical minimum GPS 3D lock value is 3906 (GPS locked and home fixed, HDOP highest accuracy, 6 satellites).
111
+
112
+
_NOTE_ This sensor used to be **Tmp1**. The ID has been reassigned in INAV 8.0. The old ID of **Tmp1** can still be used, by using `set frsky_use_legacy_gps_mode_sensor_ids = ON`. This is deprecated and will be removed in INAV 10.0. All tools and scripts using the old IDs should be updated to use the new ID.
113
+
***480** : GPS lock status, accuracy, home reset trigger, and number of satellites. Number is sent as **ABCD** detailed below. Typical minimum GPS 3D lock value is 3906 (GPS locked and home fixed, HDOP highest accuracy, 6 satellites).
112
114
***A** : 1 = GPS fix, 2 = GPS home fix, 4 = home reset (numbers are additive)
113
115
***B** : GPS accuracy based on HDOP (0 = lowest to 9 = highest accuracy)
114
116
***C** : number of satellites locked (digit C & D are the number of locked satellites)
115
117
***D** : number of satellites locked (if 14 satellites are locked, C = 1 & D = 4)
118
+
119
+
_NOTE_ This sensor used to be **Tmp2**. The ID has been reassigned in INAV 8.0. The old ID of **Tmp2** can still be used, by using `set frsky_use_legacy_gps_mode_sensor_ids = ON`. This is deprecated and will be removed in INAV 10.0. All tools and scripts using the old IDs should be updated to use the new ID.
116
120
***GAlt** : GPS altitude, sea level is zero.
117
121
***ASpd** : true air speed, from pitot sensor. This is _Knots * 10_
118
122
***A4** : average cell value. Warning : unlike FLVSS and MLVSS sensors, you do not get actual lowest value of a cell, but an average : (total lipo voltage) / (number of cells)
Copy file name to clipboardExpand all lines: src/main/fc/settings.yaml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2986,6 +2986,10 @@ groups:
2986
2986
description: "S.Port telemetry: Send pitch and roll degrees*10 instead of raw accelerometer data"
2987
2987
default_value: OFF
2988
2988
type: bool
2989
+
- name: frsky_use_legacy_gps_mode_sensor_ids
2990
+
description: "S.Port telemetry: If `ON`, send the legacy telemetry IDs for modes (Tmp1) and GNSS (Tmp2). These are old IDs, deprecated, and will be removed in INAV 10.0. Tools and scripts using these IDs should be updated to use the new IDs of **470** for Modes and **480** for GNSS. Default: 'OFF'"
2991
+
default_value: OFF
2992
+
type: bool
2989
2993
- name: report_cell_voltage
2990
2994
description: "S.Port and IBUS telemetry: Send the average cell voltage if set to ON"
uint8_ttelemetry_switch; // Use aux channel to change serial output & baudrate( MSP / Telemetry ). It disables automatic switching to Telemetry when armed.
47
47
uint8_ttelemetry_inverted; // Flip the default inversion of the protocol - Same as serialrx_inverted in rx.c, but for telemetry.
0 commit comments