|
|
|
|
@ -137,7 +137,7 @@
|
|
|
|
|
* 1. In BLDC_controller_data.c you can find the field weakening Map as a function of input target: MAP = id_fieldWeak_M1, XAXIS = r_fieldWeak_XA
|
|
|
|
|
* 2. The default calibration was experimentally calibrated to my particular needs
|
|
|
|
|
* 3. If you re-calibrate the field weakening map please take all the safety measures! The motors can spin very fast!
|
|
|
|
|
* 4. During the recalibration make sure the speed values in XAXIS are equally spaced for a correct Map interpolation.
|
|
|
|
|
* 4. During the recalibration make sure the values in XAXIS are equally spaced for a correct Map interpolation.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -152,7 +152,7 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Value of FILTER is in fixdt(0,16,16)
|
|
|
|
|
// VAL_fixedPoint = VAL_floatingPoint * 2^16. In this case 6554 = 0.1 * 2^16
|
|
|
|
|
// VAL_fixedPoint = VAL_floatingPoint * 2^16. In this case 6553 = 0.1 * 2^16
|
|
|
|
|
#define FILTER 6553 // 0.1f [-] lower value == softer filter [0, 65535] = [ 0.0 - 1.0].
|
|
|
|
|
|
|
|
|
|
// Value of COEFFICIENT is in fixdt(1,16,14)
|
|
|
|
|
|