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 senseA = analogRead(_analogPin1);
|
||||||
uint32_t senseB = analogRead(_analogPin2);
|
uint32_t senseB = analogRead(_analogPin2);
|
||||||
|
|
||||||
_minCh1 = senseA, _maxCh1 = senseA;
|
_minCh1 = senseA;
|
||||||
_minCh2 = senseB, _maxCh2 = senseB;
|
_maxCh1 = senseA;
|
||||||
|
_minCh2 = senseB;
|
||||||
|
_maxCh2 = senseB;
|
||||||
|
|
||||||
// Swipe motor
|
// Swipe motor
|
||||||
for (float i = _minPositionEndValue; i <= _maxPositionEndValue; i = i + 0.005)
|
for (float i = _minPositionEndValue; i <= _maxPositionEndValue; i = i + 0.005)
|
||||||
|
@ -76,7 +76,6 @@ void setup()
|
|||||||
|
|
||||||
motor.useMonitoring(Serial);
|
motor.useMonitoring(Serial);
|
||||||
|
|
||||||
|
|
||||||
// Init sensor
|
// Init sensor
|
||||||
motor.init();
|
motor.init();
|
||||||
Serial.println("calibrating sensor in open loop...");
|
Serial.println("calibrating sensor in open loop...");
|
||||||
|
Loading…
Reference in New Issue
Block a user