File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ int BLDCMotor::alignSensor() {
183
183
for (int i = 0 ; i <=500 ; i++ ) {
184
184
float angle = _3PI_2 + _2PI * i / 500 .0f ;
185
185
setPhaseVoltage (voltage_sensor_align, 0 , angle);
186
- sensor->update ();
186
+ sensor->update ();
187
187
_delay (2 );
188
188
}
189
189
// take and angle in the middle
@@ -193,7 +193,7 @@ int BLDCMotor::alignSensor() {
193
193
for (int i = 500 ; i >=0 ; i-- ) {
194
194
float angle = _3PI_2 + _2PI * i / 500 .0f ;
195
195
setPhaseVoltage (voltage_sensor_align, 0 , angle);
196
- sensor->update ();
196
+ sensor->update ();
197
197
_delay (2 );
198
198
}
199
199
sensor->update ();
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ int StepperMotor::alignSensor() {
141
141
for (int i = 0 ; i <=500 ; i++ ) {
142
142
float angle = _3PI_2 + _2PI * i / 500 .0f ;
143
143
setPhaseVoltage (voltage_sensor_align, 0 , angle);
144
+ sensor->update ();
144
145
_delay (2 );
145
146
}
146
147
// take and angle in the middle
@@ -150,6 +151,7 @@ int StepperMotor::alignSensor() {
150
151
for (int i = 500 ; i >=0 ; i-- ) {
151
152
float angle = _3PI_2 + _2PI * i / 500 .0f ;
152
153
setPhaseVoltage (voltage_sensor_align, 0 , angle);
154
+ sensor->update ();
153
155
_delay (2 );
154
156
}
155
157
sensor->update ();
You can’t perform that action at this time.
0 commit comments