Page 2 of 2

Re: Which BT OBD - for Triumph 675 motorcycle

Posted: Fri Mar 05, 2021 1:31 am
by rbono459890
Thanks Harry
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
(full code at https://github.com/renatobo/DucatiPanig ... Canbus.lua )

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.

Re: Which BT OBD - for Triumph 675 motorcycle

Posted: Fri Mar 05, 2021 11:19 am
by Harry
Hello,

My fault. :-( The extended channel "gear" is not propagated by queuechannelset() currently. I have fixed that but you will need to wait for the next app release to test it. As I'm working on various things currently, I suggest to work with the calculated gear for now and return to this topic when LapTimer v25 becomes available in Spring.

- Harry

P.S. Should be discussed on the developer forum.