there is a post of someone having a similar problem but it was the plugin buttons reversed.but i could not find it.
if you switch "reverse" the wires on the motor it should then be correct on the imu .
if you switch "reverse" the wires on the motor it should then be correct on the imu .