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

Cleanup in main.

parent 14728375
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,7 @@ constexpr float power_wind[] { ...@@ -83,6 +83,7 @@ constexpr float power_wind[] {
int main() int main()
{ {
spdlog::info("Starting - Smart Grid Modell");
// Intialisation // Intialisation
// put model into a base state // put model into a base state
// Intialise environment data // Intialise environment data
...@@ -98,15 +99,14 @@ int main() ...@@ -98,15 +99,14 @@ int main()
spdlog::error("Failed to open device. Exiting..."); spdlog::error("Failed to open device. Exiting...");
exit(1); exit(1);
} }
spdlog::debug("Node created");
SmartGridModell modell{arduino}; SmartGridModell modell{arduino};
spdlog::debug("Modell created");
using namespace std; using namespace std;
modell.set_power_plant(21); modell.set_power_plant(21);
this_thread::sleep_for(chrono::milliseconds(100));
modell.set_solar_plant(21); modell.set_solar_plant(21);
this_thread::sleep_for(chrono::milliseconds(100));
modell.set_village_color(21,21);
// ModelState state {}; // ModelState state {};
// bool simulation_is_running {true}; // bool simulation_is_running {true};
...@@ -116,6 +116,6 @@ int main() ...@@ -116,6 +116,6 @@ int main()
// } // }
spdlog::info("End");
return 0; return 0;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment