not done yet because calculation is wrong..
This commit is contained in:
@@ -7,27 +7,31 @@
|
||||
|
||||
#ifndef CM_HEATSINK_EMULATOR_H_
|
||||
#define CM_HEATSINK_EMULATOR_H_
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
char label[32];
|
||||
float thermal_resistance; // In Kelvin/Watt or Celsius/Watt (you can mix!)
|
||||
float R_th; // In Kelvin/Watt or Celsius/Watt (you can mix!)
|
||||
|
||||
}cm_heatsink_thermalElement_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
cm_heatsink_thermalElement_t *thermalElements;
|
||||
int thermalElements_len;
|
||||
int thermalElements_Counts;
|
||||
|
||||
float power;
|
||||
float ambientTemp;
|
||||
float thermal_capacity;
|
||||
float C_th; // Thermal capacity
|
||||
|
||||
// Dynamic
|
||||
float heatsinkTemperature;
|
||||
|
||||
}cm_heatsinkEmul_t;
|
||||
|
||||
float cm_heatsinkEmul_getRespon(cm_heatsinkEmul_t *inst, float dt);
|
||||
int cm_heatsinkEmul_init(cm_heatsinkEmul_t *inst, cm_heatsink_thermalElement_t *elements, int elements_Count, float power, float ambientTemp);
|
||||
|
||||
|
||||
#endif /* CM_HEATSINK_EMULATOR_H_ */
|
||||
|
||||
Reference in New Issue
Block a user