-
Notifications
You must be signed in to change notification settings - Fork 30
Description
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

This is the error I get when the telemetry simulator starts up and it starts getting telemetry

The FM sensor is the one I'm trying to pull the values from.
