Skip to content

Commit 2312f85

Browse files
committed
Sync with hev-devel-clean
1 parent 7295107 commit 2312f85

File tree

49 files changed

+72
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+72
-48
lines changed
-1.72 KB
Binary file not shown.
3.96 KB
Binary file not shown.
Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
%% Parameters for Power-Split HEV Speed Tracking Driver
2-
% Note that this script depends on some work space variables for plant
2+
% Note that this script depends on some parameters for plant
33
% which must be defined upfront elsewhere.
44

55
% Copyright 2021 The MathWorks, Inc.
66

7-
%% Initial Conditions
8-
% These are for controller/driver only.
9-
% ICs for plant are defined elsewhere.
10-
11-
initial.driverHVBattSOC_pct = 85;
12-
13-
initial.driverBrakeForce_N = 8000;
14-
initial.driverBrakeOn_tf = true;
15-
167
%% Power-Split HEV Speed Tracking Driver
178

189
driver.tireRadius_m = vehicle.tireRollingRadius_m;
@@ -22,8 +13,9 @@
2213
driver.brakeForceMax_N = 8000;
2314
driver.brakeRate_N_per_s = 1000;
2415

25-
driver.hvbattCapacity_Ahr = batteryHighVoltage.capacity_Ahr;
26-
driver.hvbattSocHighMid_pct = 90;
16+
driver.hvbattNominalCapacity_kWh = batteryHighVoltage.nominalCapacity_kWh;
17+
driver.hvbattVoltagePerCell_V = batteryHighVoltage.voltagePerCell_V;
18+
driver.hvbattSocHighMid_pct = 80;
2719
driver.hvbattSocMidLow_pct = 70;
2820
driver.hvbattSocLowEmpty_pct = 6;
2921

@@ -42,10 +34,19 @@
4234

4335
% Engine On Off logic for Engine and MG1 control:
4436
driver.engOnVehSpd_kph = 50; % Always use engine above this threshold
45-
driver.chgSpd_kph = 70; % Threshold vehicle speed to charge battery if driving while charge level not high
37+
driver.chgSpd_kph = 60; % Threshold vehicle speed to charge battery if driving while charge level not high
4638

4739
% Engine Controller:
4840
driver.engTrqMax_Nm = engine.trqMax_Nm;
4941
driver.engGenTrqCmd_Nm = 120;
5042
driver.engKi = 15;
5143
driver.engKp = 15;
44+
45+
%% Initial Conditions
46+
% These are for controller/driver only.
47+
% ICs for plant are defined elsewhere.
48+
49+
initial.driverHVBattSOC_pct = initial.highVoltageBatterySOC_pct;
50+
51+
initial.driverBrakeForce_N = 8000;
52+
initial.driverBrakeOn_tf = true;
92 Bytes
Binary file not shown.
-1.63 KB
Binary file not shown.
-187 Bytes
Binary file not shown.
3.55 KB
Binary file not shown.
1.87 KB
Binary file not shown.
-65 Bytes
Binary file not shown.

Components/MotorDriveUnitBasic/MotorDriveUnitBasic_setup.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
%% Parameters
1616

17-
batteryHighVoltage.capacity_Ahr = 50;
17+
batteryHighVoltage.capacity_Ahr = 2500; % about 9kWh in Li-ion (3.5V-3.7V cell)
1818
batteryHighVoltage.voltage_V = 650;
1919
batteryHighVoltage.internal_R_Ohm = 0.1;
2020

0 commit comments

Comments
 (0)