Skip to content

Commit

Permalink
initFOC: remove unnecessary delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnilz committed Jan 21, 2024
1 parent c0bb291 commit 50fc6de
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/BLDCMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 50fc6de

Please sign in to comment.