|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2011-4-1 16:38:16
|
显示全部楼层
回复【2楼】gaoqiu88 白桦林
-----------------------------------------------------------------------
你好,我现在可能还不太知道STM32电机库下到底是怎么执行的,但是代码中对于最大相电流等都有了限制,我不知道这些地方应该如何修改。
例如
// When using Id = 0, NOMINAL_CURRENT is utilized to saturate the output of the
// PID for speed regulation (i.e. reference torque).
// Whit MB459 board, the value must be calculated accordingly with formula:
// NOMINAL_CURRENT = (Nominal phase current (A, 0-to-peak)*32767* Rshunt) /0.64
#define NOMINAL_CURRENT (s16)32766 //motor nominal current (0-pk)
#define MOTOR_MAX_SPEED_RPM (u32)6000 //maximum speed required
#define MOTOR_VOLTAGE_CONSTANT 63.8 //Volts RMS ph-ph /kRPM
这个地方我就不知道该如何改了。第一次做关于电机的东西,忘指教。谢谢。 |
|