请问: 1.PHASE_ZERO到底怎么选?如果选0、15度或其他会怎么样?有没有什么原则? // These Phase values represent the base Phase value of the sinewave for each // one of the sectors (each sector is a translation of the hall effect sensors // reading #define PHASE_ZERO 57344 #define PHASE_ONE ((PHASE_ZERO + 65536/6) % 65536) #define PHASE_TWO ((PHASE_ONE + 65536/6) % 65536) #define PHASE_THREE ((PHASE_TWO + 65536/6) % 65536) #define PHASE_FOUR ((PHASE_THREE + 65536/6) % 65536) #define PHASE_FIVE ((PHASE_FOUR + 65536/6) % 65536)
2.PhaseOffset为什么大约22.5度?怎么得到的?
// In the sinewave generation algorithm we need an offset to be added to the // pointer when energizing the motor in CCW. This is done to compensate an // asymetry of the sinewave int PhaseOffset = 4100;