casainho
10 GW
- Joined
- Feb 14, 2011
- Messages
- 6,047
Well, I just implemented like that, following the BEMF value I measured on my Q85 motor. At 180 degrees happens that I need to read like that... It was strange to see the phase B current inverted comparing to the phase B voltage we are applying... But that may means because sensor is 'placed inverted'... I guess is just a question of reference.stancecoke said:casainho said:I did a refactor/update to motor code FOC angle.
Hm, it's good to have the formerly confusing angle definitons in a logical range now. But when I look at the FOC algorithm, it's the same as before, except looking at the rising vs. the falling edge?!
Also, I don't know if there is any a different advantage to read at 0 degrees over reading at 180 degrees. With current code, I think would be hard to read at 0 degrees.