Skip to content

Commit bec6406

Browse files
committed
resize the example
1 parent cec679d commit bec6406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/encoders/calibrated_sensor/calibration_save/calibration_save.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "encoders/calibrated/CalibratedSensor.h"
99

1010
// fill this array with the calibration values outputed by the calibration procedure
11-
float calibrationLut[200] = {0};
11+
float calibrationLut[100] = {0};
1212

1313
// magnetic sensor instance - SPI
1414
MagneticSensorSPI sensor = MagneticSensorSPI(AS5147_SPI, 14);
@@ -20,7 +20,7 @@ StepperDriver4PWM driver = StepperDriver4PWM(10, 9, 5, 6,8);
2020
// argument 1 - sensor object
2121
// argument 2 - number of samples in the LUT (default 200)
2222
// argument 3 - pointer to the LUT array (defualt nullptr)
23-
CalibratedSensor sensor_calibrated = CalibratedSensor(sensor, 200, calibrationLut);
23+
CalibratedSensor sensor_calibrated = CalibratedSensor(sensor, 100, calibrationLut);
2424

2525
// voltage set point variable
2626
float target_voltage = 2;

0 commit comments

Comments
 (0)