Skip to content
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

Flight Modes in the telemetry widget? #62

Open
rickgode opened this issue Dec 24, 2024 · 4 comments
Open

Flight Modes in the telemetry widget? #62

rickgode opened this issue Dec 24, 2024 · 4 comments

Comments

@rickgode
Copy link

rickgode commented Dec 24, 2024

I was customizing the telemetry sensors on the screen and tried to put the Flight Mode on there. I thought I did everything correct, but it looks like the widget is looking for an integer value and it's just text (ACRO, HOR, CRUZ, etc) Am I missing some syntax in the sensors_maps.lua?

The error I get is ERROR in refresh(): /WIDGETS/YaapuMaps/lib/layout.lua:107: attempt to perform arithmetic on local 'sensorValue' (a string value

This is what I had:

[3]= {
"Mode", -- label
"FM", -- OpenTX sensor name
0, -- precision: number of decimals 0,1,2
"", -- label for unit of measure
1, -- multiplier if < 1 than divides
"+", -- "+" track max values, "-" track min values with
2, -- font size 1=small, 2=big
nil, -- warning level (nil is do not use feature)
nil, -- critical level (nil is do not use feature)
},

Other than my specific case, it's working FANTASTIC! https://www.youtube.com/watch?v=QBl_wrMoskY

The mode shows up and it looks like it's going to work
20241224_125706
This is the error I get when the telemetry simulator starts up and it starts getting telemetry
20241224_125743
The FM sensor is the one I'm trying to pull the values from.
20241224_125811

@yaapu
Copy link
Owner

yaapu commented Jan 9, 2025

Hi, could you test this versione please?
yaapumaps210_text_sensor.zip

@rickgode
Copy link
Author

rickgode commented Jan 9, 2025

Thanks! I actually got a different error? ERROR in refresh(): WIDGETS/YaapuMaps/lib/maplib.lua;511;attempt to index field 'avgSpeed' (a nil value

Screenshot 2025-01-09 115213

Here is what I typed in to get the text sensor, maybe I mistyped something?

[3]= {
"Mode", -- label
"FM", -- OpenTX sensor name
0, -- precision: number of decimals 0,1,2
"", -- label for unit of measure
1, -- multiplier if < 1 than divides
"+", -- "+" track max values, "-" track min values with
2, -- font size 1=small, 2=big
nil, -- warning level (nil is do not use feature)
nil, -- critical level (nil is do not use feature)

@yaapu
Copy link
Owner

yaapu commented Jan 9, 2025

Hi, I cannot replicate it, could you save your telemetry so I can replay it in the simulator?

@rickgode
Copy link
Author

rickgode commented Jan 9, 2025

Sure! I can't get the FM to show up in the simulator as it doesn't seem to be one of the sensors it discovers (plus I don't get that error in the sim)
flywooexplorer_sensors_maps.zip
Flywoo Explorer-2024-06-01-193929.csv

Here is what it looks like in the sim for me as it doesn't discover the FM sensor
mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants