DIYPNP Scripting
#1
DIYPNP Scripting
I had an idea for me to be able to log which gear I'm in on my DIYPNP. However I fail to see a scripting function anywhere within Tunerstudio or MegaLog.
To determine what gear I'm in, I would use an equation to determine the ratio of engine RPM to wheel rotation's per minute, and from there I should be able to get a rough gear ratio. Then finally I could compare this rough gear ratio to the real ratio (within a certain % of the real ratio) to determine what gear I'm in .
So TL;DR, I'm looking for a way to add a script into TunerStudio or Megalog.
To determine what gear I'm in, I would use an equation to determine the ratio of engine RPM to wheel rotation's per minute, and from there I should be able to get a rough gear ratio. Then finally I could compare this rough gear ratio to the real ratio (within a certain % of the real ratio) to determine what gear I'm in .
So TL;DR, I'm looking for a way to add a script into TunerStudio or Megalog.
#4
Also, what value is the the calculated gear in Megalog? I've tried using MPH xth Gear, but I don't see that fulfilling what I want exactly.
#5
Lars is right, the megasquirt can do that.
You can also do equations in megalog viewer
https://youtu.be/OlaSNZReUH0
You can also do equations in megalog viewer
https://youtu.be/OlaSNZReUH0
I guess I would have to calculate a gear ratio based off known RPM and Wheel Speed. From there I would be able to create a gear ratio variable. This would more useful, because as I shift, there should be a dramatic shift in this gear ratio variable.
#8
Elite Member
iTrader: (2)
Join Date: Aug 2016
Location: New Fucking Jersey
Posts: 3,890
Total Cats: 143
I may have misunderstood the VSS meaning. In my performance fields in TunerStudio, my Vehicle Speed Source is defined as userSpeedMph. Which is based off of a value in the custom.ini. I looked there and I don't see anything about calculating my MPH. Now I'm quite confused.