File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ int BLDCMotor::alignSensor() {
213
213
if (!exit_flag) return exit_flag;
214
214
215
215
// if unknown natural direction
216
- if (! _isset ( sensor_direction) ){
216
+ if (sensor_direction==Direction::UNKNOWN ){
217
217
218
218
// find natural direction
219
219
// move one electrical revolution forward
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class FOCMotor
109
109
* @param sensor_direction sensor natural direction - default is CW
110
110
*
111
111
*/
112
- virtual int initFOC ( float zero_electric_offset = NOT_SET , Direction sensor_direction = Direction::CW)=0;
112
+ virtual int initFOC (float zero_electric_offset = NOT_SET , Direction sensor_direction = Direction::CW)=0;
113
113
/* *
114
114
* Function running FOC algorithm in real-time
115
115
* it calculates the gets motor angle and sets the appropriate voltages
@@ -209,7 +209,7 @@ class FOCMotor
209
209
// sensor related variabels
210
210
float sensor_offset; // !< user defined sensor zero offset
211
211
float zero_electric_angle = NOT_SET;// !< absolute zero electric angle - if available
212
- int sensor_direction = NOT_SET ; // !< if sensor_direction == Direction::CCW then direction will be flipped to CW
212
+ Direction sensor_direction = Direction::UNKNOWN ; // !< if sensor_direction == Direction::CCW then direction will be flipped to CW
213
213
214
214
/* *
215
215
* Function providing BLDCMotor class with the
You can’t perform that action at this time.
0 commit comments