Format
This commit is contained in:
parent
ac654025e4
commit
95574ccb32
@ -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)
|
||||
|
@ -76,7 +76,6 @@ void setup()
|
||||
|
||||
motor.useMonitoring(Serial);
|
||||
|
||||
|
||||
// Init sensor
|
||||
motor.init();
|
||||
Serial.println("calibrating sensor in open loop...");
|
||||
|
Loading…
Reference in New Issue
Block a user