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 0622b9f commit 339164fCopy full SHA for 339164f
1 file changed
src/common/base_classes/FOCMotor.cpp
@@ -937,8 +937,8 @@ int FOCMotor::absoluteZeroSearch() {
937
velocity_limit = velocity_index_search;
938
voltage_limit = voltage_sensor_align;
939
shaft_angle = 0;
940
- // TODO: Try the dedicated method for converting mec and elec angles
941
- float search_rotation_target = _electricalAngle(1.5f*_2PI, pole_pairs)
+ // calculting elctrical angle equivalent for a 1.5 mechanical rotation
+ float search_rotation_target = _electricalAngle(1.5f*_2PI, pole_pairs);
942
while(sensor->needsSearch() && shaft_angle < search_rotation_target){
943
angleOpenloop(search_rotation_target);
944
// call important for some sensors not to loose count
0 commit comments