-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C37.118 synchrophasor protocol node #652
base: master
Are you sure you want to change the base?
Conversation
include/villas/nodes/c37_118.hpp
Outdated
* @author Philipp Jungkamp <[email protected]> | ||
* @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC | ||
* @license Apache 2.0 | ||
*********************************************************************************/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the new file headers. I think still style is not up-to-date anymore.
include/villas/nodes/c37_118.hpp
Outdated
int stop() override; | ||
}; | ||
|
||
} /* namespace c37_118 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we now use C++ style comments.
} /* namespace c37_118 */ | |
} // namespace c37_118 |
@@ -0,0 +1,180 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File header style (as above)
Status status(Result); | ||
bool is_ok(Result); | ||
|
||
// context used to assemble and disassemble data frames with the information contained in config structs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make comments a sentence: start with capital letter and end with period.
// context used to assemble and disassemble data frames with the information contained in config structs | |
// Context used to assemble and disassemble data frames with the information contained in config structs. |
size_t pmu_index; | ||
}; | ||
|
||
// placeholder type allowing deferred assignment to a field during serialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment style
@@ -0,0 +1,145 @@ | |||
#include <array> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing file header
|
||
uint16_t calculate_crc(unsigned char *frame, uint16_t size); | ||
|
||
} /* namespace parser */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment style
namespace c37_118 { | ||
namespace types { | ||
|
||
// cartesian phasor representation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment style
Format imaginary; | ||
}; | ||
|
||
// polar phasor representation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment style
}; | ||
|
||
template <typename Format> | ||
struct Polar<Format, false> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this code isnt clang-format'ed yet..
Hey @PJungkamp, I am wondering: are you still actively working on this? I did some initial review. But it really appears to be still in a draft state.. In order to merge it we are still missing:
(I will add those point to the PR description as well) |
4ae7a31
to
27141a1
Compare
041b761
to
424d974
Compare
This includes a simple self-contained parser for IEEE Std C37.118.2 and a corresponding unit test. The C37.118 node type is a dead stub. Signed-off-by: Philipp Jungkamp <[email protected]>
424d974
to
75b2444
Compare
resolves #254
ToDo