Skip to content

v1.7.2 #336

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

Merged
merged 58 commits into from
Aug 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
03bc37c
Start of 1.7.2, cleaned up RSSI a bit, insure background() is run bef…
teckel12 Jul 1, 2019
555f2b0
Initial log file test
teckel12 Jul 2, 2019
a5b1b14
Starting to work, hard part still to go
teckel12 Jul 3, 2019
fe02581
Actually working for both Crossfire and S.Port
teckel12 Jul 3, 2019
7c0bdfe
Not works even when not connected to model receiver (classic issue wi…
teckel12 Jul 4, 2019
554cdad
Can now exit log playback
teckel12 Jul 4, 2019
0d7e9f7
Crossfire fuel percentage now works during playback
teckel12 Jul 4, 2019
8d2a1c6
No vibration on playback, Crossfire distance now working on playback
teckel12 Jul 5, 2019
4c9e504
Start of seek controls
teckel12 Jul 5, 2019
6a5faa5
Uses less memory on Taranis, still more improvements to go
teckel12 Jul 5, 2019
fc5a0a9
Uses less memory, still more to go...
teckel12 Jul 5, 2019
203b3f8
Works on Taranis, but eats a lot of memory
teckel12 Jul 6, 2019
f3153d1
Cleaned up a bit, reduced some duplicate code, but it doesn't lower u…
teckel12 Jul 7, 2019
0ca611b
Lots-o-config changes to reduce memory usage on Taranis
teckel12 Jul 7, 2019
722dc89
Fix for Q X7 Tx battery options when using Crossfire
teckel12 Jul 7, 2019
e8b1138
Resolved edge-case Crossfire yaw issue due to Crossfire rollover bug …
teckel12 Jul 8, 2019
abc9373
Detect X9 Lite correctly
teckel12 Jul 8, 2019
0985718
Avoid issues if S.Port telemetry attitude sensors are different
teckel12 Jul 8, 2019
4d13889
Slight menu tweaks
teckel12 Jul 8, 2019
77e6e30
Small memory savings
teckel12 Jul 9, 2019
cedf918
Documentation changes for current build option requirement
teckel12 Jul 9, 2019
157d7ad
Changes to maybe get it working without luac build option
teckel12 Jul 9, 2019
2d233c0
Playing with fast forward code
teckel12 Jul 9, 2019
bfd82f8
Runs without luac or lua build options, a little closer to log playba…
teckel12 Jul 10, 2019
d8b7fce
Fast forward/reverse with right stick (pitch/elevator) and playback i…
teckel12 Jul 10, 2019
2dbe905
Pause now works and some cleanup, seems to work fairly nice, now if I…
teckel12 Jul 10, 2019
fe1334f
Small changes to maybe save a bit of memory somehow, lua is a fickel …
teckel12 Jul 10, 2019
731ca3a
Error proofing the log playback
teckel12 Jul 11, 2019
f6e571e
default speed unit and order change of inputs on log playback
teckel12 Jul 12, 2019
9bb5eea
Memory reduction refactoring
teckel12 Jul 22, 2019
c11c59f
Relocated log functions
teckel12 Jul 22, 2019
e07d295
Add vertical speed to Crossfire
teckel12 Jul 22, 2019
4006abd
Added SOLID to lcdDrawFilledRect on Horus, faster?
teckel12 Jul 22, 2019
60c0f69
Merge pull request #335 from iNavFlight/logs
teckel12 Jul 22, 2019
1d88ab7
A big NO on the SOLID for rectfill
teckel12 Jul 23, 2019
a565c6c
Simplified flat-earth short-distance calculation
teckel12 Jul 23, 2019
c68697a
Corrected the distance calculation, should be 'close enough' now
teckel12 Jul 23, 2019
cb04df5
Removed commented out code
teckel12 Jul 23, 2019
4d56958
Refactored as much division to multiplication as possible for higher …
teckel12 Jul 23, 2019
64c332d
Horus config menu sats are red if no telemetry, moved some Horus code…
teckel12 Jul 23, 2019
78a9060
Lots of refactoring which saves a good amount of memory on Taranis
teckel12 Jul 24, 2019
57ced88
Merge pull request #337 from iNavFlight/dividetomultiply
teckel12 Jul 24, 2019
3de44bf
Horus: Home direction indicator now '3D'
teckel12 Jul 26, 2019
db9dba2
Better Horus HUD home location, moved save config to it's own file to…
teckel12 Jul 27, 2019
80002af
Flight path vector uses vertical speed to show more accurate vector
teckel12 Jul 27, 2019
63bf527
Provision in case there's no vertical speed sensor
teckel12 Jul 27, 2019
ec26a50
Simplified some flight path vector and home direction logic, search f…
teckel12 Jul 28, 2019
2c106bb
Move away from dotted lines for dividers, update foreground images an…
teckel12 Jul 29, 2019
c4c022c
Accomidate french translation of OpenTX where RxBt->BtRx
teckel12 Aug 7, 2019
6741926
Make flight path vector vertical position accurate based on forward a…
teckel12 Aug 7, 2019
4d1154c
Simplified Crossfire/OpenTX Yaw/Hdg overflow correction code, should …
teckel12 Aug 8, 2019
693e376
Playback log file readme and terminology changes
teckel12 Aug 8, 2019
e779fbe
Added flight path vector for S.Port/FPort telemetry
teckel12 Aug 11, 2019
f22fe90
Log playback can now keep up with faster logging than display can render
teckel12 Aug 13, 2019
0c76ff1
Improved home icon HUD on Horus
teckel12 Aug 13, 2019
4a0a126
Better log playback speed, simplified home HUD
teckel12 Aug 14, 2019
301931c
HUD home direction indicator limits top and bottom position so the ic…
teckel12 Aug 14, 2019
89387d9
Additional check for lost RSSI with Crossfire
teckel12 Aug 14, 2019
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
12 changes: 8 additions & 4 deletions .github/ISSUE_TEMPLATE/Attempt_to_call_a_nil_value.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ labels: support
assignees: teckel12
---

If you're getting an `Attempt to call a nil value` error, it means you're out of memory on your transmitter. The Taranis series has very little free memory to work with for Lua scripts, so this error is quite common. But, there are a few things that typically cause this error which are listed below:
If you're getting an `Attempt to call a nil value` error, it either means you don't have the `luac` build option checked for your OpenTX/JumperTX firmware or you're out of memory on your transmitter. The Taranis series has very little free memory to work with for Lua scripts, so this error is quite common. There's a few things that typically cause this error which are listed below:

1) When installing Lua Telemetry, be sure to download the latest LuaTelemetry.zip linked here:
1) Be sure the OpenTX/JumperTX firmware on your transmitter includes the `luac` build option, video instructions linked here:

https://youtu.be/nYeB0IXT-10?t=283

2) When installing Lua Telemetry, be sure to download the latest LuaTelemetry.zip linked here:

https://github.com/iNavFlight/LuaTelemetry/releases/latest

Also, please see the following instructions for correct installation:

https://github.com/iNavFlight/LuaTelemetry/wiki/Installation

2) Another possible reason for this error is that you're trying to use other Lua scripts on the same model. While you can have multiple Lua scripts for the same model, there's not much memory to work with on the Taranis transmitters. For example, if you're trying to use the Betaflight Tx lua script as well as Lua Telemetry, you'll probably run out of memory. If VTx control is desired, try using the OSD menu which allows you to change VTx settings right on the OSD.
3) Another possible reason for this error is that you're trying to use other Lua scripts on the same model. While you can have multiple Lua scripts for the same model, there's not much memory to work with on the Taranis transmitters. For example, if you're trying to use the Betaflight Tx lua script as well as Lua Telemetry, you'll probably run out of memory. If VTx control is desired, try using the OSD menu which allows you to change VTx settings right on the OSD.

3) Too many unused models. Each model slot setup in your transmitter takes up valuable memory. Many times models are backed up to tweak settings without deleting the backups when finished. By deleting unused models, memory is freed that can be used for other things, like Lua scripts.
4) Too many unused models. Each model slot setup in your transmitter takes up valuable memory. Many times models are backed up to tweak settings without deleting the backups when finished. By deleting unused models, memory is freed that can be used for other things, like Lua scripts.

As this is a common issue that I've tried to cover in the Wiki, I would appreciate if you could let me know how the instructions could be improved to avoid any confusion.

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Not_enough_memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ labels: support
assignees: teckel12
---

If you're getting a `not enough memory error`, it means you're out of memory on your transmitter. The Taranis series has very little free memory to work with for Lua scripts, so this error is quite common. But, there are a few things that typically cause this error which are listed below:
If you're getting a `not enough memory error`, it means you're out of memory on your transmitter. The Taranis series has very little free memory to work with for Lua scripts, so this error is quite common. There's a few things that typically cause this error which are listed below:

1) When installing Lua Telemetry, be sure to download the latest LuaTelemetry.zip linked here:

Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## INAV Lua Telemetry Flight Status for Taranis/Horus/Jumper T16 - v1.7.1
## INAV Lua Telemetry Flight Status for Taranis/Horus/Jumper T16 - v1.7.2

### FrSky SmartPort(S.Port), D-series, F.Port & TBS Crossfire telemetry on Taranis, Horus & Jumper T16 transmitters

Expand All @@ -8,10 +8,9 @@

#### [Video of Lua Telemetry](https://youtu.be/YaUgywuT1YM)

#### Classic view
#### Horus/Jumper T16 view

![sample](assets/iNavQX7.png "Classic view on Q X7 and X-Lite")  
![sample](assets/iNavX9D.png "Classic view on Taranis X9D, X9D+ and X9E")
![sample](assets/iNavHorus.png "View on Horus transmitters")

#### Pilot (glass cockpit) view for fixed wing pilots

Expand All @@ -28,9 +27,10 @@
![sample](assets/iNavQX7alt.png "Altitude graph view on Q X7 and X-Lite")  
![sample](assets/iNavX9Dalt.png "Altitude graph view on Taranis X9D, X9D+ and X9E")

#### Horus/Jumper T16 view
#### Classic view

![sample](assets/iNavHorus.png "View on Horus transmitters")
![sample](assets/iNavQX7.png "Classic view on Q X7 and X-Lite")  
![sample](assets/iNavX9D.png "Classic view on Taranis X9D, X9D+ and X9E")

## Features

Expand All @@ -46,6 +46,7 @@
* Display and voice alerts for flight modes and flight mode modifiers (altitude hold, heading hold, home reset, etc.)
* Voice notifications for % battery remaining (based on current), voltage low/critical, high altitude, lost GPS, ready to arm, armed, disarmed, etc.
* GPS info: Satellites locked, GPS accuracy (HDOP), GPS altitude, GPS coordinates. Also logs the last GPS location (reviewed from the config menu)
* Playback previous flights via telemetry log files, including fast forward, rewind, and pause features
* Display of current/maximum: Altitude, Distance, Speed and Current
* Display of current/minimum: Battery voltage, RSSI strength
* Title display of model name, flight timer, transmitter voltage and receiver voltage
Expand All @@ -57,6 +58,7 @@

* [OpenTX v2.2.2+](http://www.open-tx.org/) running on Taranis Q X7/Q X7S, X9D/X9D+, X9E, X9 Lite, X-Lite/X-Lite Pro, Horus X10/X10S or X12S (OpenTX v2.2.3+ is suggested)
* Jumper T16 requires [JumperTX 2.2.3+](https://www.jumper.xyz/jumpertx-t16) (May 23, 2019 or after release)
* The OpenTX/JumperTX firmware on your transmitter needs to [includes the `luac` build option](https://youtu.be/nYeB0IXT-10?t=283)
* FrSky X, R9 or D series telemetry receiver: X4RSB, X8R, XSR, R-XSR, XSR-M, XSR-E, RX4R, RX6R, XM, XM+, R9, R9 Slim, R9 Slim+, R9 Mini, R9 MM, D8R-II plus, D8R-XP, D4R-II, etc. or any TBS Crossfire receiver: Micro, Nano, Diversity, etc.
* [INAV v1.7.3+](https://github.com/iNavFlight/inav/releases) running on your flight controller (INAV v2.1.0+ is suggested for full functionality) - Also compatible with Betaflight (with reduced functionality)
* GPS - If you're looking for a GPS module, I suggest the [Beitian BN-880](https://www.banggood.com/UBLOX-NEO-M8N-BN-880-Flight-Control-GPS-Module-Dual-Module-Compass-p-971082.html)
Expand Down Expand Up @@ -97,7 +99,7 @@
* [Screen Description](https://github.com/iNavFlight/LuaTelemetry/wiki/Screen-Description)
* [Configuration Settings](https://github.com/iNavFlight/LuaTelemetry/wiki/Configuration-Settings)
* [Suggested Battery Settings](https://github.com/iNavFlight/LuaTelemetry/wiki/Suggested-Battery-Settings)
* [Change Log - Release History](https://github.com/iNavFlight/LuaTelemetry/wiki/Change-Log)
* [Playback Telemetry Logs](https://github.com/iNavFlight/LuaTelemetry/wiki/Playback-Telemetry-Log-Files)

## Support

Expand All @@ -108,5 +110,6 @@
## Other

* [Upgrade to Development Build](https://github.com/iNavFlight/LuaTelemetry/wiki/Upgrade-to-Development-Build)
* [Release History](https://github.com/iNavFlight/LuaTelemetry/wiki/Change-Log)
* [Multilingual Support](https://github.com/iNavFlight/LuaTelemetry/wiki/Multilingual-Support)
* [License](https://github.com/iNavFlight/LuaTelemetry/blob/master/LICENSE)
Binary file modified assets/iNavHorus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ luac52 -s -o obj/lang_de.luac src/iNav/lang_de.lua
luac52 -s -o obj/lang_es.luac src/iNav/lang_es.lua
luac52 -s -o obj/lang_fr.luac src/iNav/lang_fr.lua
luac52 -s -o obj/load.luac src/iNav/load.lua
luac52 -s -o obj/log_c.luac src/iNav/log_c.lua
luac52 -s -o obj/log_s.luac src/iNav/log_s.lua
luac52 -s -o obj/log.luac src/iNav/log.lua
luac52 -s -o obj/menu.luac src/iNav/menu.lua
luac52 -s -o obj/modes.luac src/iNav/modes.lua
luac52 -s -o obj/other.luac src/iNav/other.lua
luac52 -s -o obj/pilot.luac src/iNav/pilot.lua
luac52 -s -o obj/radar.luac src/iNav/radar.lua
luac52 -s -o obj/reset.luac src/iNav/reset.lua
luac52 -s -o obj/save.luac src/iNav/save.lua
luac52 -s -o obj/view.luac src/iNav/view.lua

rm -fR obj/
Expand Down
Binary file modified dist/SCRIPTS/TELEMETRY/iNav.lua
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/alt.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/config.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/crsf.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/data.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/func_h.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/func_t.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/horus.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/lang_de.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/lang_es.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/lang_fr.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/load.luac
Binary file not shown.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/log.luac
Binary file not shown.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/log_c.luac
Binary file not shown.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/log_s.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/menu.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/other.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pics/fg0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pics/fg1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pics/fg2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pics/fg3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pics/fg4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pics/fg5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/SCRIPTS/TELEMETRY/iNav/pics/home.png
Binary file not shown.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/pics/homel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/pics/homem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/pics/homes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/pilot.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/radar.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/reset.luac
Binary file not shown.
Binary file added dist/SCRIPTS/TELEMETRY/iNav/save.luac
Binary file not shown.
Binary file modified dist/SCRIPTS/TELEMETRY/iNav/view.luac
Binary file not shown.
Loading