From 50fc6de70c17bcc4fba00a0347df0596bebf2ffc Mon Sep 17 00:00:00 2001 From: Nils Schulte Date: Sun, 21 Jan 2024 11:21:28 +0100 Subject: [PATCH] initFOC: remove unnecessary delay --- src/BLDCMotor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/BLDCMotor.cpp b/src/BLDCMotor.cpp index e0f5415d..9dbc0a48 100644 --- a/src/BLDCMotor.cpp +++ b/src/BLDCMotor.cpp @@ -151,7 +151,6 @@ int BLDCMotor::initFOC() { // alignment necessary for encoders! // sensor and motor alignment - can be skipped // by setting motor.sensor_direction and motor.zero_electric_angle - _delay(500); if(sensor){ exit_flag *= alignSensor(); // added the shaft_angle update @@ -165,7 +164,6 @@ int BLDCMotor::initFOC() { // aligning the current sensor - can be skipped // checks if driver phases are the same as current sense phases // and checks the direction of measuremnt. - _delay(500); if(exit_flag){ if(current_sense){ if (!current_sense->initialized) {