I have used the engine channel in Lua with "gear"
Code: Select all
-- Create a new and empty set of channels
enginechannelset = {}
-- engine.gear [v23]: gear with -1 rear, and 0 neutral; integer; optional; usually derived from speed, rpms, gear
-- and drive ratios, this channel can be used to feed in a gear measured
-- pos=2 to skip the message byte we just read
enginechannelset.rpm, enginechannelset.wheelspeed, enginechannelset.tps, enginechannelset.gear = string.unpack("I2I2I1i1", message,2)
-- Pass result to app
sensor.queuechannelset(enginechannelset, engine)
sensor.rawupdatedforsensortype(engine) -- Rate Update
yet it is not visualized in the display and the data export is always 0 for the column named "GEAR".
Thanks for confirming it is used, I'll re-run tests.