View Single Post
Old 09-01-2015, 04:55 PM   #1929 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
I think I found out what was wrong in the code that caused the weirdness. I'm going to go test it, in the 3,000,000degF shop. There are 2 sets of PI values. For kp-id ki-id, and kp-iq ki-iq. I had kp-iq and ki-iq set to weird values. It works to set them to the same as kp-id and kp-iq. If you don't want to wait around for me, type something like this:

kp-id 1000
ki-id 1
kp-iq 1000
ki-iq 1

run-pi-test

So, each time you change the values, change it for both of them. I'll change the code so that it happens automatically. I just wasn't sure if there was ever a situation where kp and ki for Id and Iq needed to be different. It never had to be for the 2 motors I've tested so far.

I'm going to send over another hex file. I also had set Id to 75amp, and Iq to 0amp. It would make more sense for Id to be 0 and Iq to be 75.
__________________
kits and boards

Last edited by MPaulHolmes; 09-01-2015 at 05:03 PM..
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
thingstodo (09-01-2015)