A2212/13t BLDC motor and problems

So you have two odd things there.

  1. your encoder angle is negative (opposite) to motor angle. On its own I’d say swap motor cables round, but you also have:
  2. A very small encode angle. I’m wondering whether your 14bit is correct. Some very similarly named encoders are 10, 11 or 12 bit.