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
Copy file name to clipboardExpand all lines: docs/Settings.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -429,6 +429,7 @@
429
429
| osd_snr_alarm | 4 | -20 | 10 | Value below which Crossfire SNR Alarm pops-up. (dB) |
430
430
| osd_stats_energy_unit | MAH ||| Unit used for the drawn energy in the OSD stats [MAH/WH] (milliAmpere hour/ Watt hour) |
431
431
| osd_stats_min_voltage_unit | BATTERY ||| Display minimum voltage of the `BATTERY` or the average per `CELL` in the OSD stats. |
432
+
| osd_telemetry | OFF ||| To enable OSD telemetry for antenna tracker. Possible values are `OFF`, `ON` and `TEST`|
432
433
| osd_temp_label_align | LEFT ||| Allows to chose between left and right alignment for the OSD temperature sensor labels. Valid values are `LEFT` and `RIGHT`|
433
434
| osd_time_alarm | 10 | 0 | 600 | Value above which to make the OSD flight time indicator blink (minutes) |
trk_elevation= (float)at*57.2957795; // 57.2957795 = 1 rad
1213
+
trk_elevation+=37; // because elevation in telemetry should be from -37 to 90
1214
+
if (trk_elevation<0) {
1215
+
trk_elevation=0;
1216
+
}
1217
+
}
1218
+
}
1219
+
}
1220
+
else{
1221
+
trk_elevation=127;
1222
+
trk_bearing=0;
1223
+
}
1224
+
1225
+
trk_data=0; // bit 0 - packet type 0 = bearing/elevation, 1 = 2 byte data packet
1226
+
trk_data=trk_data | (uint32_t)(0x7F&trk_elevation) << 1; // bits 1-7 - elevation angle to target. NOTE number is abused. constrained value of -37 to 90 sent as 0 to 127.
1227
+
trk_data=trk_data | (uint32_t)trk_bearing << 8; // bits 8-17 - bearing angle to target. 0 = true north. 0 to 360
1228
+
trk_crc=crc_accumulate(0xFF&trk_data, trk_crc); // CRC First Byte bits 0-7
1229
+
trk_crc=crc_accumulate(0xFF&trk_bearing, trk_crc); // CRC Second Byte bits 8-15
1230
+
trk_crc=crc_accumulate(trk_bearing >> 8, trk_crc); // CRC Third Byte bits 16-17
0 commit comments