I've been lurking here for ages with a half finished plugin, but in order to complete it I needed a way to reliably get the cars current gear..
I've seen a few posts recently where people have created plugins with the gear showing.. but its not clear how they have done this.. does any one fancy sharing the secret (I can understand if you don't - if its a commercial plugin) as I think its something they are calculating rather than requesting from Torque itself.
Cheers,
Sam
Most if not all are using speed/rpm relationship to determine gear. Most all manual transmissions are "dumb" with no form of electrical gear position indicator. Automatics almost always report some form of gear position, but its not always what you would expect, such as only showing prndl. Taking that direction would also require knowing the pids for each manufacturer you want your plugin to work with as it is not a generic obd2 pid. Best bet is to come up with a way of making a table to determine rpm/wheel speed relation to Guess the gear.
How does that work with autos and the locked/unlocked state of the converter.
e.g. 2000rpm in fifth might be 50mph when locked-up, but equally 2000rpm unlocked in 6th could perhaps be a similar road speed.
It's like clutch-slip in a manual.
Or am I being dumb ?
Quote from crates on September 17, 2012
[snip]
Or am I being dumb ?
No, you are not dumb 🙂 Showing correct gear for automatics is tricky. I ended up in addition to the 'guess' mode, adding a simple UI in my plug-in where people can click a button to record current gear. Then the plug-in uses that information to display what it thinks the gear is.
Check out this effort by Sensadigit:
http://torque-bhp.com/forums/?wpforumaction=viewtopic&t=2620.0