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.
2 parents 9723e39 + 7ae4248 commit e935fe7Copy full SHA for e935fe7
1 file changed
src/common/base_classes/FOCMotor.h
@@ -220,8 +220,8 @@ class FOCMotor
220
float voltage_bemf; //!< estimated backemf voltage (if provided KV constant)
221
float Ualpha, Ubeta; //!< Phase voltages U alpha and U beta used for inverse Park and Clarke transform
222
223
- DQCurrent_s feed_forward_current;//!< current d and q current measured
224
- DQVoltage_s feed_forward_voltage;//!< current d and q voltage set to the motor
+ DQCurrent_s feed_forward_current = {0.0f, 0.0f};//!< current d and q current measured
+ DQVoltage_s feed_forward_voltage = {0.0f, 0.0f};//!< current d and q voltage set to the motor
225
226
// motor configuration parameters
227
float voltage_sensor_align;//!< sensor and motor align voltage parameter
0 commit comments