I run a hobbyist racing team called Electric Turtle. We drive
this Chevy Bolt EV in the 24 Hours of Lemons racing series. In our driving, we need to compromise between speed and efficiency. Currently we use Torque to display the precise battery state-of-charge (a range from ~0% to ~96%), and we use
this csv file to expose the state-of-charge gauge.
If the racetrack is 5 miles long, then the gauge we really want is: “the percent of battery used in the last 5 miles.” We know the distance traveled in Torque from the speed over time. Is there a way to make a custom gauge that combines multiple inputs (battery state of charge and speed) over a duration of time or distance?
I am a software engineer by profession, so if there is a place where I can write a little computer program for this, I would gladly do it. Any advice?
P.S. I looked a little bit at the
list of built-in Torque equations, and it looks like there are some relevant things, but I haven’t found quite the thing I want. I want to record “a value from 5 miles ago” and compare it to “the value now.” In Torque, I don’t know how to store old values like that.