You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/common/base_classes/FOCMotor.h
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -104,12 +104,8 @@ class FOCMotor
104
104
* and aligning sensor's and motors' zero position
105
105
*
106
106
* - If zero_electric_offset parameter is set the alignment procedure is skipped
107
-
*
108
-
* @param zero_electric_offset value of the sensors absolute position electrical offset in respect to motor's electrical 0 position.
109
-
* @param sensor_direction sensor natural direction - default is CW
110
-
*
111
107
*/
112
-
virtualintinitFOC(float zero_electric_offset = NOT_SET , Direction sensor_direction = Direction::CW)=0;
108
+
virtualintinitFOC()=0;
113
109
/**
114
110
* Function running FOC algorithm in real-time
115
111
* it calculates the gets motor angle and sets the appropriate voltages
@@ -209,7 +205,7 @@ class FOCMotor
209
205
// sensor related variabels
210
206
float sensor_offset; //!< user defined sensor zero offset
211
207
float zero_electric_angle = NOT_SET;//!< absolute zero electric angle - if available
212
-
Direction sensor_direction = Direction::UNKNOWN; //!< if sensor_direction == Direction::CCW then direction will be flipped to CW
208
+
Direction sensor_direction = Direction::CW; //!< default is CW. if sensor_direction == Direction::CCW then direction will be flipped compared to CW. Set to UNKNOWN to set by calibration
0 commit comments