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
52ce85dc
Commit
52ce85dc
authored
6 years ago
by
athatheocsd
Browse files
Options
Downloads
Patches
Plain Diff
added another observable
parent
a3e1adda
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
-0
5 additions, 0 deletions
inc/Services/EventReportService.hpp
src/Services/EventReportService.cpp
+4
-0
4 additions, 0 deletions
src/Services/EventReportService.cpp
with
9 additions
and
0 deletions
inc/Services/EventReportService.hpp
+
5
−
0
View file @
52ce85dc
...
...
@@ -27,6 +27,11 @@ public:
uint16_t
disabledEventsCount
;
uint16_t
lastInformativeEventReportID
;
uint16_t
lastLowSeverityReportID
;
uint16_t
lastMediumSeverityReportID
;
uint16_t
lastHighSeverityReportID
;
EventReportService
()
{
stateOfEvents
.
set
();
serviceType
=
5
;
...
...
This diff is collapsed.
Click to expand it.
src/Services/EventReportService.cpp
+
4
−
0
View file @
52ce85dc
...
...
@@ -12,6 +12,7 @@ void EventReportService::informativeEventReport(Event eventID, const uint8_t *da
Message
report
=
createTM
(
1
);
report
.
appendEnum16
(
eventID
);
report
.
appendString
(
length
,
data
);
lastInformativeEventReportID
=
static_cast
<
uint16_t
>
(
eventID
);
storeMessage
(
report
);
}
...
...
@@ -24,6 +25,7 @@ EventReportService::lowSeverityAnomalyReport(Event eventID, const uint8_t *data,
Message
report
=
createTM
(
2
);
report
.
appendEnum16
(
eventID
);
report
.
appendString
(
length
,
data
);
lastLowSeverityReportID
=
static_cast
<
uint16_t
>
(
eventID
);
storeMessage
(
report
);
}
...
...
@@ -35,6 +37,7 @@ void EventReportService::mediumSeverityAnomalyReport(Event eventID,
Message
report
=
createTM
(
3
);
report
.
appendEnum16
(
eventID
);
report
.
appendString
(
length
,
data
);
lastMediumSeverityReportID
=
static_cast
<
uint16_t
>
(
eventID
);
storeMessage
(
report
);
}
...
...
@@ -47,6 +50,7 @@ EventReportService::highSeverityAnomalyReport(Event eventID, const uint8_t *data
Message
report
=
createTM
(
4
);
report
.
appendEnum16
(
eventID
);
report
.
appendString
(
length
,
data
);
lastHighSeverityReportID
=
static_cast
<
uint16_t
>
(
eventID
);
storeMessage
(
report
);
}
...
...
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