# Inverse Park Transform (`invPark`)

> Rotates a d-q vector back into the fixed alpha-beta frame.

![invPark](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/img/invPark.svg)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/control/invPark/)

**Group:** Control · **Kind:** `{"block":"invPark","kind":"control"}`

## When to use it

Use it after the current controllers to turn vd and vq into a fixed voltage vector. Use dq to abc Transform for both steps.

## Pins

| Pin | Domain | Meaning |
|---|---|---|
| `d` | signal | Direct-axis component input |
| `q` | signal | Quadrature-axis component input |
| `theta` | signal | Frame angle in radians, electrical |
| `alpha` | signal | Component along the axis of phase a |
| `beta` | signal | Component 90 degrees ahead of alpha |

## Model

The outputs are alpha = d*cos(theta) - q*sin(theta) and beta = d*sin(theta) + q*cos(theta). At the same theta it is the exact inverse of Park Transform. The angle is in radians and can be any value.

## Common mistakes

- Use the same theta signal as the forward Park Transform or abc to dq Transform in the loop. Otherwise the two transforms turn to different frames and the controller sees a rotating error, and a sampled angle on one side with a continuous angle on the other does the same.
- An open theta reads 0 and the vector stays fixed. This transform does not limit, so limit vd and vq with lo and hi of the PI Controller blocks in front of it.

Problems rules: `pin.unconnected`

## Datasheet and sources

No datasheet applies. The d and q inputs are voltage or current commands from your controllers, and theta is the same electrical angle the forward transform uses.

## Example

Open the example with the command `file.openExample` and the name `demo:invPark`.

---
Generated by `cargo xtask reference` from the usage texts and parameter specs. Do not edit by hand.
