At least you're not actually dealing with code for a Hannah Montana. The radically different architecture, the non-IEEE floating point handling, and lack of GCC support make programming that a bit of a pain. Hopefully Intel's Larrabee will perform at least as well and be easier to program...
Quote:
I want to try to implement some sort of perfect Kp and Ki seeking algorithm, so that the controller can LEARN it's motor.
|
What you're trying to do is APID (Adaptive Proportional Integral Derivative) control. A friend of mine (known as "fridge girl") is actually working on an APID controller for HVAC. She's using hardware that is considered pretty powerful by embedded system standards - a 266MHz RISC CPU (ARM), 32MB SDRAM, 8MB boot ROM + 512MB SSD, Ethernet, USB 2.0, CAN, and it runs Linux. From my understanding, it analyzes data from the past and uses it to change the PID variables for better control. The interesting part is that it does this over several different timescales - from a few minutes to a day or two. Then again, it depends on the periodic property of most HVAC applications. I highly doubt an EV will be very periodic. Best to stick to manual adjustment.