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
aca9f67c
Commit
aca9f67c
authored
6 years ago
by
athatheocsd
Browse files
Options
Downloads
Patches
Plain Diff
EventActionService.hpp almost complete
parent
a553342d
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/EventActionService.hpp
+61
-5
61 additions, 5 deletions
inc/Services/EventActionService.hpp
src/Services/EventActionService.cpp
+7
-0
7 additions, 0 deletions
src/Services/EventActionService.cpp
with
68 additions
and
5 deletions
inc/Services/EventActionService.hpp
+
61
−
5
View file @
aca9f67c
...
@@ -2,18 +2,74 @@
...
@@ -2,18 +2,74 @@
#define ECSS_SERVICES_EVENTACTIONSERVICE_HPP
#define ECSS_SERVICES_EVENTACTIONSERVICE_HPP
#include
"Service.hpp"
#include
"Service.hpp"
/**
* Implementation of ST[19] event-action Service
*
* @todo: check if two enums are need for both event-action status and event-action definition
* status
*/
class
EventActionService
:
public
Service
{
class
EventActionService
:
public
Service
{
public:
public:
EventActionService
(){
EventActionService
()
{
serviceType
=
19
;
serviceType
=
19
;
}
}
/**
/**
* TC[19,1]
* Event-action status
*
* Note: In the standard 8.19.3.a and 8.19.3.b there are two enums with the same enum values
* (event-action status and event-action function status). I discarded the function one,
* because I think one enum is enough.
*/
enum
eventActionStatus
{
disabled
=
0
,
enabled
=
1
,
};
/**
* TC[19,1] add event-action definitions
*/
void
addEventActionDefinitions
(
Message
message
);
/**
* TC[19,2] delete event-action definitions
*/
*/
void
deleteEventActionDefinitions
(
Message
message
);
/**
* TC[19,3] delete all event-action definitions
*/
void
deleteAllEventActionDefinitions
(
Message
message
);
/**
* TC[19,4] enable event-action definitions
*/
void
enableEventActionDefinitions
(
Message
message
);
/**
* TC[19,5] disable event-action definitions
*/
void
disableEventActionDefinitions
(
Message
message
);
/**
* TC[19,6] report the status of each event-action definition
*/
void
requestEventActionDefinitionStatus
(
Message
message
);
/**
* TM[19,7] event-action status report
*/
void
eventActionStatusReport
();
/**
* TC[19,8] enable the event-action function
*/
void
enableEventActionFunction
(
Message
message
);
/**
* TC[19,9] disable the event-actioni function
*/
void
disableEventActionFunction
(
Message
message
);
};
};
#endif //ECSS_SERVICES_EVENTACTIONSERVICE_HPP
#endif //ECSS_SERVICES_EVENTACTIONSERVICE_HPP
This diff is collapsed.
Click to expand it.
src/Services/EventActionService.cpp
+
7
−
0
View file @
aca9f67c
...
@@ -2,3 +2,10 @@
...
@@ -2,3 +2,10 @@
#include
"Message.hpp"
#include
"Message.hpp"
#include
"MessageParser.hpp"
#include
"MessageParser.hpp"
void
EventActionService
::
addEventActionDefinitions
(
Message
message
){
if
(
message
.
messageType
==
1
&&
message
.
packetType
==
Message
::
TC
&&
message
.
serviceType
==
19
){
int
N
=
message
.
readUint16
();
}
}
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