Describe the bug
FOCMotor.h defines
DQCurrent_s feed_forward_current;//!< current d and q current measured
DQVoltage_s feed_forward_voltage;//!< current d and q voltage set to the motor
These variables are never actively set somewhere when not initialized properly to zero.
proposal; initialize to zero
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
Describe the hardware setup
For us it is very important to know what is the hardware setup you're using in order to be able to help more directly
IDE you are using
- Something else: raw ESP_IDF with platformio
Describe the bug
FOCMotor.h defines
These variables are never actively set somewhere when not initialized properly to zero.
proposal; initialize to zero
Describe the hardware setup
For us it is very important to know what is the hardware setup you're using in order to be able to help more directly
IDE you are using