Skip to content

Commit

Permalink
Allow to set setpoints via external_limits interface
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Claussen <[email protected]>
  • Loading branch information
corneliusclaussen committed Feb 5, 2025
1 parent 6c115ae commit 8b9093f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/EnergyNode/energy_grid/energyImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ void energyImpl::set_external_limits(types::energy::ExternalLimits& l) {
e.limits_to_root.ac_max_phase_count = {mod->config.phase_count, source_cfg};
}
}

energy_flow_request.schedule_setpoints = l.schedule_setpoints;
}

void energyImpl::publish_complete_energy_object() {
Expand Down
13 changes: 13 additions & 0 deletions types/energy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ types:
required:
- schedule_import
- schedule_export
- schedule_setpoints
properties:
schedule_import:
description: >-
Expand All @@ -406,3 +407,15 @@ types:
description: One entry for the time series
type: object
$ref: /energy#/ScheduleReqEntry
schedule_setpoints:
description: >-
Setpoints time series. The first entry is special
as it will be active already now even if the timestamp is in the future,
so it is good practice to set the first entry to current time. The time
series can have arbitrary time difference between entries and all timestamps
are absolute UTC time.
type: array
items:
description: One entry for the time series.
type: object
$ref: /energy#/ScheduleSetpointEntry

0 comments on commit 8b9093f

Please sign in to comment.