Explorar o código

扭矩模式下支持限速

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui %!s(int64=4) %!d(string=hai) anos
pai
achega
56863cef8d
Modificáronse 5 ficheiros con 3 adicións e 0 borrados
  1. BIN=BIN
      Simulink/MotorController_FOC.slx
  2. BIN=BIN
      Simulink/MotorController_FOC.slxc
  3. BIN=BIN
      Simulink/dataset.mat
  4. 3 0
      Simulink/init_model.m
  5. BIN=BIN
      Simulink/matlab.mat

BIN=BIN
Simulink/MotorController_FOC.slx


BIN=BIN
Simulink/MotorController_FOC.slxc


BIN=BIN
Simulink/dataset.mat


+ 3 - 0
Simulink/init_model.m

@@ -75,6 +75,7 @@ n_max               = 5000;             % [rpm] Maximum motor speed: [-5000, 500
 res_rpm_openloop     = 100;
 delta_rpm_openloop = 100; % delta rpm that when speed decreased, enter open loop
 min_start_voltage_openloop = 10;
+min_openVol = 10;
 a_rpm_step = i_Udc / (n_max / res_rpm_openloop);
 % Motor parameters
 n_polePairs         = 4;                           % [-] Number of motor pole pairs
@@ -98,6 +99,8 @@ dz_cntTrnsDetHi     = 140;               % [-] Counter gradient High for transie
 dz_cntTrnsDetLo     = 100;               % [-] Counter gradient Low for steady state detection (used for speed estimation)
 n_stdStillDet       = 3;                % [rpm] Speed threshold for Stand still detection
 
+n_SpeedModeLo       = 400; % min speed for exit speed ctrl mode
+n_SpeedModeHi       = 500; % when speed is Hi can into speed ctrl mode
 % Motor Angle Measurement (e.g. using an encoder)
 b_angleMeasEna      = 0;                % [-] Enable flag for external mechanical motor angle sensor: 0 = estimated (default), 1 = measured
 

BIN=BIN
Simulink/matlab.mat