Skip to content

Commit

Permalink
Merge pull request #370 from Schnilz/dev
Browse files Browse the repository at this point in the history
initFOC: remove unnecessary delay
  • Loading branch information
runger1101001 authored Jan 26, 2024
2 parents 77ba3fe + 50fc6de commit ecfbcd2
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 ecfbcd2

Please sign in to comment.