-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update/passive rg #2051
Update/passive rg #2051
Conversation
Copying fprime-open-source-review/Svc/PassiveRateGroup [revision: v3.2.0-20-gca5d909e9] to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup
Running fpp-from-xml on fprime-open-source-review/Svc/PassiveRateGroup/PassiveRateGroupComponentAi.xml to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroup.fpp
Running fpp-format on srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroup.fpp
Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.hpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupTester.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupImplTester.cpp
Formatting the following files: srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupTester.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupImplTester.cpp
Writing fprime-open-source-review/Svc/PassiveRateGroup/mod.mk to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/CMakeLists.txt Added srh-fsw-base/lib/fprime/Svc/PassiveRateGroup as subdirectory to: srh-fsw-base/lib/fprime/Svc/CMakeLists.txt srh-fsw-base/srh-fsw-base.cmake
…_clean_up Removing the following: srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupComponentAi.xml srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/mod.mk srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/Makefile srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/ComponentReport.txt srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/output
Wouldn't it be better to have a sequence diagram in mermaid? |
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.
Leftover files, old headers and other minor comments.
|
||
class PassiveRateGroupTester: public PassiveRateGroupGTestBase { | ||
public: | ||
PassiveRateGroupTester(Svc::PassiveRateGroup& inst); |
Check warning
Code scanning / CppCheck
Single-parameter constructors should be marked explicit.
|
||
class PassiveRateGroupTester: public PassiveRateGroupGTestBase { | ||
public: | ||
PassiveRateGroupTester(Svc::PassiveRateGroup& inst); |
Check warning
Code scanning / CppCheck
Single-parameter constructors should be marked explicit.
U32 m_cycles; //!< cycles executed | ||
U32 m_maxTime; //!< maximum execution time in microseconds | ||
NATIVE_INT_TYPE m_numContexts; //!< number of contexts | ||
NATIVE_INT_TYPE m_contexts[NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS]; //!< Must match number of output ports |
Check notice
Code scanning / CodeQL
Use of basic integral type
|
||
U32 m_cycles; //!< cycles executed | ||
U32 m_maxTime; //!< maximum execution time in microseconds | ||
NATIVE_INT_TYPE m_numContexts; //!< number of contexts |
Check notice
Code scanning / CodeQL
Use of basic integral type
} | ||
|
||
|
||
void PassiveRateGroup::CycleIn_handler(NATIVE_INT_TYPE portNum, Svc::TimerVal& cycleStart) { |
Check notice
Code scanning / CodeQL
Use of basic integral type
|
||
PassiveRateGroup::~PassiveRateGroup(void) {} | ||
|
||
void PassiveRateGroup::configure(NATIVE_INT_TYPE contexts[], NATIVE_INT_TYPE numContexts) { |
Check notice
Code scanning / CodeQL
Use of basic integral type
|
||
PassiveRateGroup::~PassiveRateGroup(void) {} | ||
|
||
void PassiveRateGroup::configure(NATIVE_INT_TYPE contexts[], NATIVE_INT_TYPE numContexts) { |
Check notice
Code scanning / CodeQL
Use of basic integral type
#include <Svc/PassiveRateGroup/PassiveRateGroup.hpp> | ||
|
||
namespace Svc { | ||
PassiveRateGroup::PassiveRateGroup(const char* compName) |
Check notice
Code scanning / CodeQL
Use of basic integral type
FW_ASSERT(this->m_numContexts); | ||
|
||
// invoke any members of the rate group | ||
for (NATIVE_INT_TYPE port = 0; port < this->getNum_RateGroupMemberOut_OutputPorts(); port++) { |
Check notice
Code scanning / CodeQL
Use of basic integral type
|
||
this->m_numContexts = numContexts; | ||
// copy context values | ||
for (NATIVE_INT_TYPE entry = 0; entry < this->m_numContexts; entry++) { |
Check notice
Code scanning / CodeQL
Use of basic integral type
} | ||
|
||
|
||
void PassiveRateGroup::CycleIn_handler(NATIVE_INT_TYPE portNum, Svc::TimerVal& cycleStart) { |
Check notice
Code scanning / CodeQL
Long function without assertion
|
||
PassiveRateGroup::~PassiveRateGroup(void) {} | ||
|
||
void PassiveRateGroup::configure(NATIVE_INT_TYPE contexts[], NATIVE_INT_TYPE numContexts) { |
Check notice
Code scanning / CodeQL
Long function without assertion
for (NATIVE_INT_TYPE port = 0; port < this->getNum_RateGroupMemberOut_OutputPorts(); port++) { | ||
if (this->isConnected_RateGroupMemberOut_OutputPort(port)) { | ||
this->RateGroupMemberOut_out(port, this->m_contexts[port]); | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Unbounded loop
end.take(); | ||
|
||
// get rate group execution time | ||
U32 cycle_time = end.diffUSec(cycleStart); |
Check warning
Code scanning / CodeQL
Unchecked function argument
@timcanham ready for re-review. Your comments and @ThibFrgsGmz's comments addressed. |
* AUTO: Svc/PassiveRateGroup transformed by copy_sources Copying fprime-open-source-review/Svc/PassiveRateGroup [revision: v3.2.0-20-gca5d909e9] to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup * AUTO: Svc/PassiveRateGroup transformed by fppify Running fpp-from-xml on fprime-open-source-review/Svc/PassiveRateGroup/PassiveRateGroupComponentAi.xml to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroup.fpp * AUTO: Svc/PassiveRateGroup transformed by fpp_formater Running fpp-format on srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroup.fpp * AUTO: Svc/PassiveRateGroup transformed by cpp_source_updater Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.hpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupTester.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupImplTester.cpp * AUTO: Svc/PassiveRateGroup transformed by cpp_format Formatting the following files: srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupTester.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupImplTester.cpp * AUTO: Svc/PassiveRateGroup transformed by cmakeify Writing fprime-open-source-review/Svc/PassiveRateGroup/mod.mk to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/CMakeLists.txt Added srh-fsw-base/lib/fprime/Svc/PassiveRateGroup as subdirectory to: srh-fsw-base/lib/fprime/Svc/CMakeLists.txt srh-fsw-base/srh-fsw-base.cmake * AUTO: Svc/PassiveRateGroup transformed by clean_up_clean_up_everybody_clean_up Removing the following: srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupComponentAi.xml srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/mod.mk srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/Makefile srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/ComponentReport.txt srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/output * Adding passive rate group * Fixing UT and review concerns * Fixing (void) arguments * Fixing (void) and broken links
* AUTO: Svc/PassiveRateGroup transformed by copy_sources Copying fprime-open-source-review/Svc/PassiveRateGroup [revision: v3.2.0-20-gca5d909e9] to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup * AUTO: Svc/PassiveRateGroup transformed by fppify Running fpp-from-xml on fprime-open-source-review/Svc/PassiveRateGroup/PassiveRateGroupComponentAi.xml to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroup.fpp * AUTO: Svc/PassiveRateGroup transformed by fpp_formater Running fpp-format on srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroup.fpp * AUTO: Svc/PassiveRateGroup transformed by cpp_source_updater Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.hpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupTester.cpp Rewriting C++ syntax of srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupImplTester.cpp * AUTO: Svc/PassiveRateGroup transformed by cpp_format Formatting the following files: srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupImpl.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupTester.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/PassiveRateGroupImplTester.cpp * AUTO: Svc/PassiveRateGroup transformed by cmakeify Writing fprime-open-source-review/Svc/PassiveRateGroup/mod.mk to srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/CMakeLists.txt Added srh-fsw-base/lib/fprime/Svc/PassiveRateGroup as subdirectory to: srh-fsw-base/lib/fprime/Svc/CMakeLists.txt srh-fsw-base/srh-fsw-base.cmake * AUTO: Svc/PassiveRateGroup transformed by clean_up_clean_up_everybody_clean_up Removing the following: srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/PassiveRateGroupComponentAi.xml srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/mod.mk srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/Makefile srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/ComponentReport.txt srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/GTestBase.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.cpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/TesterBase.hpp srh-fsw-base/lib/fprime/Svc/PassiveRateGroup/test/ut/output * Adding passive rate group * Fixing UT and review concerns * Fixing (void) arguments * Fixing (void) and broken links
Change Description
Adds a passive rate group!