Skip to content
Snippets Groups Projects
Commit 810aed3d authored by Armin Co's avatar Armin Co
Browse files

Fix power production

parent e4f712e0
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ void SmartOpcServer::run_server()
// update opc objects
m_sun.SetValue(Variant(m_state_machine.m_model.get_sun()));
m_wind.SetValue(Variant(m_state_machine.m_model.get_wind()));
m_power_production.SetValue(Variant(m_state_machine.m_model.get_power_production()));
m_power_production.SetValue(Variant(m_state_machine.m_model.get_power_production().sum()));
m_usage.SetValue(Variant(m_state_machine.m_model.get_power_usage()));
m_excess_power.SetValue(Variant(m_state_machine.m_model.get_excess_power()));
m_time.SetValue(Variant(m_state_machine.m_model.get_time()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment