Skip to content

Commit 655c099

Browse files
committed
Move Ualpha and Ubeta to FOCMotor
1 parent 4d117ba commit 655c099

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/BLDCMotor.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ class BLDCMotor: public FOCMotor
6969
void move(float target = NOT_SET) override;
7070

7171
float Ua, Ub, Uc;//!< Current phase voltages Ua,Ub and Uc set to motor
72-
float Ualpha, Ubeta; //!< Phase voltages U alpha and U beta used for inverse Park and Clarke transform
73-
72+
7473
/**
7574
* Method using FOC to set Uq to the motor at the optimal angle
7675
* Heart of the FOC algorithm

src/common/base_classes/FOCMotor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ class FOCMotor
161161
DQVoltage_s voltage;//!< current d and q voltage set to the motor
162162
DQCurrent_s current;//!< current d and q current measured
163163
float voltage_bemf; //!< estimated backemf voltage (if provided KV constant)
164+
float Ualpha, Ubeta; //!< Phase voltages U alpha and U beta used for inverse Park and Clarke transform
165+
164166

165167
// motor configuration parameters
166168
float voltage_sensor_align;//!< sensor and motor align voltage parameter

0 commit comments

Comments
 (0)