We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655c099 commit bfa492cCopy full SHA for bfa492c
src/StepperMotor.h
@@ -73,8 +73,6 @@ class StepperMotor: public FOCMotor
73
*/
74
void move(float target = NOT_SET) override;
75
76
- float Ualpha,Ubeta; //!< Phase voltages U alpha and U beta used for inverse Park and Clarke transform
77
-
78
/**
79
* Method using FOC to set Uq to the motor at the optimal angle
80
* Heart of the FOC algorithm
src/common/base_classes/FOCMotor.cpp
@@ -32,6 +32,10 @@ FOCMotor::FOCMotor()
32
33
// voltage bemf
34
voltage_bemf = 0;
35
+
36
+ // Initialize phase voltages U alpha and U beta used for inverse Park and Clarke transform
37
+ Ualpha = 0;
38
+ Ubeta = 0;
39
40
//monitor_port
41
monitor_port = nullptr;
0 commit comments