Skip to content

Commit 339164f

Browse files
committed
Fixed ; and better comments
1 parent 0622b9f commit 339164f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/base_classes/FOCMotor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ int FOCMotor::absoluteZeroSearch() {
937937
velocity_limit = velocity_index_search;
938938
voltage_limit = voltage_sensor_align;
939939
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)
940+
// calculting elctrical angle equivalent for a 1.5 mechanical rotation
941+
float search_rotation_target = _electricalAngle(1.5f*_2PI, pole_pairs);
942942
while(sensor->needsSearch() && shaft_angle < search_rotation_target){
943943
angleOpenloop(search_rotation_target);
944944
// call important for some sensors not to loose count

0 commit comments

Comments
 (0)