Part Number: TMS320F28379D
I'm using a QEP encoder with the motor control SDK for an EV application and am trying to understand the behavior of the vehicle on startup before the controller has detected the index pulse from the encoder. There is a variable in the source code shown below -
float32_t lsw1Speed = 0.02; // initial force rotation speed in search
// of QEP index pulse
When this "force rotation" period is going on, is there any way that the motor moves backward before finding the index and then moves forward? I want to ensure this does not happen.
Also, in the motor parameter definition section in the header file, how are "slots" of the encoder defined? I have an encoder that outputs 2048 "cycles" of the encoder which is effectively 8192 rising/flling edges per rotation. Is my slot number equal to 2048 or 8192? Below is a screenshot from the datasheet of the encoder I'm using(RM44), my "counts per rev" is 8192.
Thanks in Advance
Chai
