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
46d49e51
"git@git.noc.ruhr-uni-bochum.de:makerspace/homepage.git" did not exist on "5240c03cbf4520244d090833bf5ccc82a8a6d746"
Commit
46d49e51
authored
6 years ago
by
athatheocsd
Browse files
Options
Downloads
Patches
Plain Diff
Reformatted code
parent
e998fbf2
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
+5
-2
5 additions, 2 deletions
inc/Services/EventReportService.hpp
src/Services/EventReportService.cpp
+4
-4
4 additions, 4 deletions
src/Services/EventReportService.cpp
with
9 additions
and
6 deletions
inc/Services/EventReportService.hpp
+
5
−
2
View file @
46d49e51
...
@@ -8,11 +8,13 @@
...
@@ -8,11 +8,13 @@
*/
*/
#define CSS_EVENTS_MAX_COUNT 16
#define CSS_EVENTS_MAX_COUNT 16
#define ECSS_EVENTS_BITS 16
#define ECSS_EVENTS_BITS 16
class
EventReportService
:
public
Service
{
class
EventReportService
:
public
Service
{
public:
public:
EventReportService
(){
EventReportService
()
{
serviceType
=
5
;
serviceType
=
5
;
}
}
/**
/**
* TM[5,1] informative event report
* TM[5,1] informative event report
* Send report to inform the respective recipients about an event
* Send report to inform the respective recipients about an event
...
@@ -62,4 +64,5 @@ public:
...
@@ -62,4 +64,5 @@ public:
void
highSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
);
void
highSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
);
};
};
#endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP
#endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP
This diff is collapsed.
Click to expand it.
src/Services/EventReportService.cpp
+
4
−
4
View file @
46d49e51
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*/
*/
void
EventReportService
::
informativeEventReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
void
EventReportService
::
informativeEventReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
uint8_t
length
)
{
// TM[5,1]
// TM[5,1]
Message
report
=
createTM
(
1
);
Message
report
=
createTM
(
1
);
report
.
appendEnum16
(
eventID
);
report
.
appendEnum16
(
eventID
);
...
@@ -21,7 +21,7 @@ void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t
...
@@ -21,7 +21,7 @@ void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t
}
}
void
EventReportService
::
lowSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
void
EventReportService
::
lowSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
uint8_t
length
)
{
// TM[5,2]
// TM[5,2]
Message
report
=
createTM
(
2
);
Message
report
=
createTM
(
2
);
report
.
appendEnum16
(
eventID
);
report
.
appendEnum16
(
eventID
);
...
@@ -31,7 +31,7 @@ void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_
...
@@ -31,7 +31,7 @@ void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_
}
}
void
EventReportService
::
mediumSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
void
EventReportService
::
mediumSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
uint8_t
length
)
{
// TM[5,3]
// TM[5,3]
Message
report
=
createTM
(
3
);
Message
report
=
createTM
(
3
);
report
.
appendEnum16
(
eventID
);
report
.
appendEnum16
(
eventID
);
...
@@ -41,7 +41,7 @@ void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uin
...
@@ -41,7 +41,7 @@ void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uin
}
}
void
EventReportService
::
highSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
void
EventReportService
::
highSeverityAnomalyReport
(
uint16_t
eventID
,
const
uint8_t
*
data
,
uint8_t
length
){
uint8_t
length
)
{
// TM[5,4]
// TM[5,4]
Message
report
=
createTM
(
4
);
Message
report
=
createTM
(
4
);
report
.
appendEnum16
(
eventID
);
report
.
appendEnum16
(
eventID
);
...
...
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