-
Notifications
You must be signed in to change notification settings - Fork 57
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
Script iNav error: /SCRIPTS/TELEMETRY/iNav.lua:375: bad argument #3 to 'drawText' (string expected, got nil) #43
Comments
Problem solved and yes it was in my setup. Telemetry distance sensor 0420 was renamed to Dist as per README.md instructions but it had a value descriptor of "Raw(-)" This is how OpenTX discovered that sensor and deleting all sensors and rediscovering did not cure the issue. Possibly an addition to the renaming instructions to also check its descriptor value and set to either "ft" or "m" This issue can be closed as this description above was the fix. |
@MRC3742 Looking into this now. I added the auto metric/imperial calibration and indication and maybe didn't test this with the default sensors. |
@MRC3742 Good catch! I didn't account for a zero value for the sensor unit (Lua uses a base of 1 for arrays). Changing the unit of the sensor to No reason for you to upgrade to v1.1.7 as there's no other changes and you've already set the |
Maybe I'm missing something, but I have this same error and just downloaded the master.zip. Running the script I get the same error as the OP. on the sensors I have 16: 0402 0. I'm not sure where I would set this to f or m. Any help would be appreciated. Thank you! My other senor values work as expected. |
@shaiss This is a very old error which was corrected so it shouldn't be for the same reason. Basically, if you're getting this error, it's probably not related. In any case, your Let me know how that works for you. |
Thx for the prompt reply. I renamed it to Dist and set to m. No dice same
error. all I see is "script syntax error bad argument #1 to 'writ
Thx for the help and let me know how I can get you more info on what's
going on.
…On Fri, Apr 27, 2018, 18:22 Tim Eckel ***@***.***> wrote:
Reopened #43 <#43>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAG5pEXmQjCraL1o6oJy0GdBS73RKtAiks5ts5oxgaJpZM4QPE5X>
.
|
@shaiss I don't believe it has anything to do with the I would really need to know what version of Lua Telemetry you're running, if you're running the S.Port or F.Port protocol, and a telemetry log file from your transmitter would also be great (you can turn on telemetry logs and have every sensor value logged). I have mine set to log something like 10 times a second, but you could change the frequency if you wish. It's a good idea anyway as the information you get could be very valuable at some point. Also, when do you get this error, as soon as you start? Once something happens (like armed), etc. You may also want to try the development version (v1.2.5) that you can get here. Finally, you may want to open a new issue as this issue is totally unrelated. It's a script error, but EVERY error is a script error. |
Telemetry screen will display properly with versions up to and including v1.1.1
After that version I am getting a Syntax error immediately upon switching to the telemetry screen.
With current development version 1.1.6, error is in line 375 and states in debug as follows:
Script iNav error: /SCRIPTS/TELEMETRY/iNav.lua:375: bad argument #3 to 'drawText' (string expected, got nil)
The problem seems to be in the "ext" value. This seems to be the descriptor that follows the telemetry values listed ( ft, mph, A, %, V, db)
If I change "ext" to a numeric value, such as "5" the script will run with 5 shown as the descriptor in all telemetry fields.
Possibly a problem with my setup as no one else seems to be having an issue?
Taranis X9D+ OpenTX v2.2.0
SPRacing EVO with INav v1.8.0 and Ublox GPS
X4R(SB) RX with S.port telemetry
No Current Sensor
The text was updated successfully, but these errors were encountered: