CLARKE2(9)
π CLARKE2 π
okay bestie, so this one lives in the HAL Component section of the manual β like, section 9, kernel/dev territory, iykyk. it's called clarke2 and it is the two-input version of the Clarke transform. let's get into it π
β¨ NAME β¨
clarke2 β Two input version of Clarke transform π¦
β¨ SYNOPSIS β¨
loadrt clarke2 [count=N|names=name1[,name2...]]
β¨ DESCRIPTION β¨
so the Clarke transform is that girl π she translates a vector quantity from a three phase system (three components, sitting 120 degrees apart, iconic geometry fr) over to a two phase Cartesian system. glow up, honestly.
clarke2 implements a special case of the Clarke transform, and she's lowkey efficient about it β she only needs two of the three input phases. here's the tea β: in a three wire three phase system, the sum of the three phase currents or voltages must always be zero. always. no cap. so as a result, only two of the three are actually needed to completely define the current or voltage. like, the third one is just sitting there being redundant, we love her but she is not needed.
so clarke2 straight up assumes the sum is zero, which means it only uses phases A and B of the input. and because the H (homopolar) output will always be zero in this case, it is not generated at all. bye bestie, we don't do zero outputs here π
β¨ FUNCTIONS β¨
clarke2.Nβ requires a floating-point thread β (so like, don't try to run her on an integer thread, she will simply not vibe)
β¨ PINS β¨
clarke2.N.afloat inclarke2.N.bfloat in- first two phases of three phase input πΈ (these are your A and B girls, the only two we need)
clarke2.N.xfloat outclarke2.N.yfloat out- cartesian components of output π (this is where the transform shows off)
β¨ SEE ALSO β¨
clarke3(9)β for the general case, if you need all three phases in your life πclarkeinv(9)β for the inverse transform, aka the way back π¦
β¨ AUTHOR β¨
John Kasunich β the icon who made this happen π
β¨ LICENSE β¨
GPL β the people's license, periodt π
ngl, a whole lot of math happened so you could run clarke2 on two thirds of your data. respect the hustle π«Ά
okay that's the whole page!! this was brought to you by the fine folks at LinuxCNC Documentation, dated 2026-03-17 π mwah, go load some realtime components bestie β¨π
π¦ where this page comes from
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms