Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Smart Grid Modell
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Co
Smart Grid Modell
Commits
70fc86dc
Commit
70fc86dc
authored
Aug 26, 2020
by
Armin Co
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup in main.
parent
14728375
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.cpp
+6
-6
6 additions, 6 deletions
src/main.cpp
with
6 additions
and
6 deletions
src/main.cpp
+
6
−
6
View file @
70fc86dc
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment