Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
394448ce
Commit
394448ce
authored
6 years ago
by
athatheocsd
Browse files
Options
Downloads
Patches
Plain Diff
Added parameters and changed some updated the javadoc
parent
a02612e8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/Services/EventReportService.hpp
+20
-4
20 additions, 4 deletions
inc/Services/EventReportService.hpp
src/Services/EventReportService.cpp
+4
-4
4 additions, 4 deletions
src/Services/EventReportService.cpp
with
24 additions
and
8 deletions
inc/Services/EventReportService.hpp
+
20
−
4
View file @
394448ce
...
...
@@ -22,32 +22,48 @@ public:
* Send report to inform the respective recipients about an event
*
* Note: The parameters are defined by the standard, but the event definition id is missing!
*
* @param eventID event definition ID
* @param data the data of the report
* @param length the length of the data
*/
void
informativeEventReport
(
const
uint8_t
*
data
,
uint8_t
length
);
void
informativeEventReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
);
/**
* TM[5,2] low severiity anomaly report
* Send report when there is an anomaly event of low severity to the respective recipients
*
* Note: The parameters are defined by the standard, but the event definition id is missing!
*
* @param eventID event definition ID
* @param data the data of the report
* @param length the length of the data
*/
void
lowSeverityAnomalyReport
(
const
uint8_t
*
data
,
uint8_t
length
);
void
lowSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
);
/**
* TM[5,3] medium severity anomaly report
* Send report when there is an anomaly event of medium severity to the respective recipients
*
* Note: The parameters are defined by the standard, but the event definition id is missing!
*
* @param eventID event definition ID
* @param data the data of the report
* @param length the length of the data
*/
void
mediumSeverityAnomalyReport
(
const
uint8_t
*
data
,
uint8_t
length
);
void
mediumSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
);
/**
* TM[5,4] high severity anomaly report
* Send report when there is an anomaly event of hgih severity to the respective recipients
*
* Note: The parameters are defined by the standard, but the event definition id is missing!
*
* @param eventID event definition ID
* @param data the data of the report
* @param length the length of the data
*/
void
highSeverityAnomalyReport
(
const
uint8_t
*
data
,
uint8_t
length
);
void
highSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
);
};
#endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP
This diff is collapsed.
Click to expand it.
src/Services/EventReportService.cpp
+
4
−
4
View file @
394448ce
#include
"Services/EventReportService.hpp"
#include
"Message.hpp"
void
EventReportService
::
informativeEventReport
(
const
uint8_t
*
data
,
uint8_t
length
){
void
EventReportService
::
informativeEventReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
// TM[5,1]
Message
report
=
createTM
(
1
);
storeMessage
(
report
);
}
void
EventReportService
::
lowSeverityAnomalyReport
(
const
uint8_t
*
data
,
uint8_t
length
){
void
EventReportService
::
lowSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
// TM[5,2]
Message
report
=
createTM
(
2
);
storeMessage
(
report
);
}
void
EventReportService
::
mediumSeverityAnomalyReport
(
const
uint8_t
*
data
,
uint8_t
length
){
void
EventReportService
::
mediumSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
// TM[5,3]
Message
report
=
createTM
(
3
);
storeMessage
(
report
);
}
void
EventReportService
::
highSeverityAnomalyReport
(
const
uint8_t
*
data
,
uint8_t
length
){
void
EventReportService
::
highSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
// TM[5,4]
Message
report
=
createTM
(
4
);
...
...
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