Home
last modified time | relevance | path

Searched refs:k_p (Results 1 – 2 of 2) sorted by relevance

/SCP-firmware-master/module/thermal_mgmt/src/
A Dmod_thermal_mgmt.c41 int32_t k_p, k_i; in pi_control() local
59 k_p = (err < 0) ? dev_ctx->config->pi_controller.k_p_overshoot : in pi_control()
78 pi_power = (k_p * err) + (k_i * dev_ctx->integral_error); in pi_control()
/SCP-firmware-master/module/thermal_mgmt/test/
A Dmod_thermal_mgmt_unit_test.c529 int32_t allocatable_power, k_i, k_p, err, terr; in test_thermal_mgmt_pi_control_positive_allocatable_power() local
545 k_p = dev_ctx->config->pi_controller.k_p_undershoot = 2; in test_thermal_mgmt_pi_control_positive_allocatable_power()
549 allocatable_power = k_p * err + k_i * terr + dev_ctx->config->tdp; in test_thermal_mgmt_pi_control_positive_allocatable_power()

Completed in 4 milliseconds