Which BT OBD - for Triumph 675 motorcycle

Discussion related to external OBD and other sensors
User avatar
rbono459890
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 21
Joined: Mon Sep 14, 2020 5:13 am

Re: Which BT OBD - for Triumph 675 motorcycle

Post 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.
User avatar
Harry
Site Admin
Site Admin
Posts: 10516
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Which BT OBD - for Triumph 675 motorcycle

Post 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.
Image Image Image Image
Post Reply