You folks have sure been quiet recently..
Anyhow, I have a ton of outdoor work to do.. like going around a field 100 times cutting hay.. It gives me lots of time to think about how I'm going to solve a problem.
So I put pretty much all my global float typed variables into an array that I'm accessing by using an enumerator.. It is not helping readability on things that span 2 lines as it is, but I think in the long run it'll pay off, especially when trying to update stuff over serial port, and getting information back to the laptop.. I don't think I'll have the arduino send much periodic information over the serial port by default.. perhaps a few basics, RPM, boost, VGT position, but all the other advanced stuff the laptop will send a request for. I really want to see how the PID system I have works, all I can say is I'm hopeful!...
The math is really complicated, and a lot of the PID components will probably be unnecessary in the final version, but it's easier to put them all in and set their sensitivity to 0.. I think for tuning I will start with all Proportional sensitivities at 1, and integral and derivative sensitivities at 0, then if it's too laggy, overshoots, or doesn't ever get to the setpoints, I can play with the 'I' and 'D' components
'94 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM