Implemented maximum voltage check for DC/DC

This commit is contained in:
Martin Jaeger
2019-03-19 10:11:52 +01:00
parent 6c9ea2ee84
commit e94fd88a5e
2 changed files with 14 additions and 6 deletions
+4 -4
View File
@@ -46,11 +46,11 @@ enum dcdc_control_mode
* actual measurements and calibration parameters.
*/
typedef struct {
dcdc_control_mode mode;
dcdc_control_mode mode; ///< DC/DC mode (buck, boost or nanogrid)
// actual measurements
float ls_current; ///< Low-side (inductor) current
float temp_mosfets;
float temp_mosfets; ///< MOSFET temperature measurement (if existing)
// current state
float power; ///< Power at low-side (calculated by dcdc controller)
@@ -60,8 +60,8 @@ typedef struct {
// maximum allowed values
float ls_current_max; ///< Maximum low-side (inductor) current
float ls_current_min; ///< Minimum low-side current (if lower, charger is switched off)
float hs_voltage_max;
float ls_voltage_max;
float hs_voltage_max; ///< Maximum high-side voltage
float ls_voltage_max; ///< Maximum low-side voltage
// calibration parameters
//float offset_voltage_start; // V charging switched on if Vsolar > Vbat + offset