This commit is contained in:
Lucien Renaud 2022-05-25 18:58:36 +02:00
parent ac654025e4
commit 95574ccb32
2 changed files with 6 additions and 5 deletions

View File

@ -23,8 +23,10 @@ void LinearHallSensor::init(BLDCMotor motor)
uint32_t senseA = analogRead(_analogPin1);
uint32_t senseB = analogRead(_analogPin2);
_minCh1 = senseA, _maxCh1 = senseA;
_minCh2 = senseB, _maxCh2 = senseB;
_minCh1 = senseA;
_maxCh1 = senseA;
_minCh2 = senseB;
_maxCh2 = senseB;
// Swipe motor
for (float i = _minPositionEndValue; i <= _maxPositionEndValue; i = i + 0.005)

View File

@ -76,7 +76,6 @@ void setup()
motor.useMonitoring(Serial);
// Init sensor
motor.init();
Serial.println("calibrating sensor in open loop...");