Skip to content

Commit 2d1edbd

Browse files
author
askuric
committed
type in KV examples
1 parent 4101a6e commit 2d1edbd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/utils/calibration/find_kv_rating/encoder/find_kv_rating/find_kv_rating.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Encoder encoder = Encoder(2, 3, 8192);
2424

2525
// Interrupt routine intialisation
2626
// channel A and B callbacks
27-
void doA(){encoder.handleA();}
28-
void doB(){encoder.handleB();}
27+
void doA(){sensor.handleA();}
28+
void doB(){sensor.handleB();}
2929

3030

3131
// voltage set point variable
@@ -44,7 +44,7 @@ void setup() {
4444

4545
// initialize encoder sensor hardware
4646
sensor.init();
47-
sensor.enableInterrupts(doA, doB, doC);
47+
sensor.enableInterrupts(doA, doB);
4848
// link the motor to the sensor
4949
motor.linkSensor(&sensor);
5050

examples/utils/calibration/find_kv_rating/magnetic_sensor/find_kv_rating/find_kv_rating.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void setup() {
3939

4040
// initialize encoder sensor hardware
4141
sensor.init();
42-
sensor.enableInterrupts(doA, doB, doC);
4342
// link the motor to the sensor
4443
motor.linkSensor(&sensor);
4544

0 commit comments

Comments
 (0)