Skip to content

BLDCMotor: make setPhaseVoltage public #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/BLDCMotor.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ class BLDCMotor: public FOCMotor
float Ua, Ub, Uc;//!< Current phase voltages Ua,Ub and Uc set to motor
float Ualpha, Ubeta; //!< Phase voltages U alpha and U beta used for inverse Park and Clarke transform


private:
// FOC methods
/**
/**
* Method using FOC to set Uq to the motor at the optimal angle
* Heart of the FOC algorithm
*
Expand All @@ -82,6 +79,10 @@ class BLDCMotor: public FOCMotor
* @param angle_el current electrical angle of the motor
*/
void setPhaseVoltage(float Uq, float Ud, float angle_el);

private:
// FOC methods

/** Sensor alignment to electrical 0 angle of the motor */
int alignSensor();
/** Current sense and motor phase alignment */
Expand Down