Move thermal model parameters to DTS

This commit is contained in:
Martin Jäger
2020-05-06 12:53:26 +02:00
parent 38125f3da3
commit 4e6f6c7365
14 changed files with 220 additions and 243 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ void control_on_to_off_overcurrent()
TEST_ASSERT_EQUAL(LOAD_STATE_ON, load_out.state);
// almost 2x current = 4x heat generation: Should definitely trigger after waiting one time constant
int trigger_steps = CONFIG_MOSFET_THERMAL_TIME_CONSTANT * CONFIG_CONTROL_FREQUENCY;
int trigger_steps = DT_CHARGE_CONTROLLER_PCB_MOSFETS_TAU_JA * CONFIG_CONTROL_FREQUENCY;
for (int i = 0; i <= trigger_steps; i++) {
load_out.control();
}