Skip to content

Commit 842354e

Browse files
committed
added KV rating correction due to the RMS voltage
1 parent 69a250e commit 842354e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/BLDCMotor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ BLDCMotor::BLDCMotor(int pp, float _R, float _KV)
1313
// save phase resistance number
1414
phase_resistance = _R;
1515
// save back emf constant KV = 1/KV
16-
KV_rating = _KV;
16+
// 1/sqrt(2) - rms value
17+
KV_rating = _KV*_SQRT2;
1718

1819
// torque control type is voltage by default
1920
torque_controller = TorqueControlType::voltage;

src/StepperMotor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ StepperMotor::StepperMotor(int pp, float _R, float _KV)
1414
// save phase resistance number
1515
phase_resistance = _R;
1616
// save back emf constant KV = 1/K_bemf
17-
KV_rating = _KV;
17+
// usually used rms
18+
KV_rating = _KV*_SQRT2;
1819

1920
// torque control type is voltage by default
2021
// current and foc_current not supported yet

0 commit comments

Comments
 (0)