Skip to content
Snippets Groups Projects

Power consumption adjustments

Merged Jan Schmitz requested to merge power_consumption_adjustments into master
3 files
+ 36
21
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -180,9 +180,9 @@ void entity_main_tasks(void* arg)
@@ -180,9 +180,9 @@ void entity_main_tasks(void* arg)
// set virtual load
// set virtual load
if (entity.ups.charge_level < 99.9f) {
if (entity.ups.charge_level < 99.9f) {
virtual_load_set_percent(&control->virtual_load, .5);
virtual_load_set_percent(&control->virtual_load, .3);
} else {
} else {
virtual_load_set_percent(&control->virtual_load, .25);
virtual_load_set_percent(&control->virtual_load, .15);
}
}
// Set Server LED blink
// Set Server LED blink
@@ -296,7 +296,7 @@ void init_entity(data_center_control* control)
@@ -296,7 +296,7 @@ void init_entity(data_center_control* control)
// ups config
// ups config
entity.ups.charge_level = 0.0;
entity.ups.charge_level = 0.0;
entity.ups.charge_rate = 5.0;
entity.ups.charge_rate = 2.5;
entity.ups.discharge_rate = 5.0;
entity.ups.discharge_rate = 5.0;
}
}
Loading