2026-05-16

PMSM Current Loop Demo

A sample technical note showing equations, local images, code blocks, and cross references.

This sample note shows the writing features you asked for: local images, LaTeX equations, and cross references.

Equation

For a surface-mounted PMSM current loop, a simplified q-axis equation can be written as:

Inline math works too: is a common starting point before field weakening.

Local image

The image below is stored beside this Markdown file in the same page bundle.

Current loop block diagram

Code

1
2
Kp = Lq * wc;
Ki = Rs * wc;

Cross reference

Read the companion note: MTPA derivation.