Skip to content

Commit 50fc6de

Browse files
committed
initFOC: remove unnecessary delay
1 parent c0bb291 commit 50fc6de

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/BLDCMotor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ int BLDCMotor::initFOC() {
151151
// alignment necessary for encoders!
152152
// sensor and motor alignment - can be skipped
153153
// by setting motor.sensor_direction and motor.zero_electric_angle
154-
_delay(500);
155154
if(sensor){
156155
exit_flag *= alignSensor();
157156
// added the shaft_angle update
@@ -165,7 +164,6 @@ int BLDCMotor::initFOC() {
165164
// aligning the current sensor - can be skipped
166165
// checks if driver phases are the same as current sense phases
167166
// and checks the direction of measuremnt.
168-
_delay(500);
169167
if(exit_flag){
170168
if(current_sense){
171169
if (!current_sense->initialized) {

0 commit comments

Comments
 (0)