Re: Keep the original speedometer.
I’m still tweaking the code, but if I did nothing more, I would be happy with it the way it is. I’m still learning how to adjust the PID code. I set the starting speed with Bias, and the top speed is set with kp. The sweep in non-linear so I use an equation based on the motor torque curve. There are a couple more values in the PID code to adjust reaction time and amount.The needle is pretty steady, but it does jump more than I would like when it moves. It also looked to be reading a little low at some points, but I’m not sure how acurate the ’90 speedometer is. I do need to run a speedometer app the next time I do a road test, thanks for the suggestion.
|