Added calibrated current scale
This commit is contained in:
parent
1b81f70df3
commit
0d98607a0a
|
@ -423,11 +423,15 @@ int main(void)
|
|||
char number[FXP_STR_MAXLEN];
|
||||
uint8_t sentSomething = 0;
|
||||
|
||||
// Calculated values
|
||||
//fxp_t VIN_SCALE = fxp_from_float(3.3f * (100 + 12.4f) / 12.4f / 4095.0f);
|
||||
//fxp_t VOUT_SCALE = fxp_from_float(3.3f * (100 + 12.0f) / 12.0f / 4095.0f);
|
||||
//fxp_t CURRENT_SCALE = fxp_from_float(9.7f / 4095.0f);
|
||||
|
||||
// Calibrated from measurements
|
||||
fxp_t VIN_SCALE = fxp_from_float(12.11f / 1600.0f);
|
||||
fxp_t VOUT_SCALE = fxp_from_float(12.6f / 1620.0f);
|
||||
fxp_t CURRENT_SCALE = fxp_from_float(9.7f / 4095.0f);
|
||||
fxp_t CURRENT_SCALE = fxp_from_float(9.01f / 4095.0f);
|
||||
|
||||
init_clock();
|
||||
init_gpio();
|
||||
|
|
Loading…
Reference in a new issue