Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Park Transform (park)

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

park

Component reference · 繁體中文

Group: Control · Kind: {"block":"park","kind":"control"}

When to use it

Use it after Clarke Transform to see the vector in a frame that turns with the rotor or flux. Use abc to dq Transform for both steps.

Pins

Pin Domain Meaning
alpha signal Alpha component input
beta signal Beta component input
theta signal Frame angle in radians, electrical
d signal Direct-axis component, along the frame
q signal Quadrature-axis component, 90 degrees ahead of d

Model

The outputs are d = alphacos(theta) + betasin(theta) and q = -alphasin(theta) + betacos(theta). The frame turns counter-clockwise with theta, which can be any value and needs no wrapping. A cosine on phase a at the angle theta gives d = A and q = 0, and a vector leading the frame by phi gives d = Acos(phi) and q = Asin(phi).

Common mistakes

  • theta is in radians, so degrees or turns make the frame rotate at the wrong rate. It must be the electrical angle (pole pairs times the mechanical angle), for example from Angle Generator or the elec output of a position sensor.
  • An open theta reads 0, which freezes the frame. A wrong angle offset mixes d and q, so compare the sensor offset with theta0 of the machine.

Problems rules: pin.unconnected

Datasheet and sources

No datasheet applies. The alpha and beta inputs come from Clarke Transform, and theta comes from the sensor or estimator: pole pairs times the mechanical angle plus any sensor offset.

Example

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


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