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
7641dffe
Commit
7641dffe
authored
6 years ago
by
kongr45gpen
Browse files
Options
Downloads
Patches
Plain Diff
Use the new fetch functions in the test service
parent
a5b93847
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/Services/TestService.hpp
+2
-2
2 additions, 2 deletions
inc/Services/TestService.hpp
src/Services/TestService.cpp
+3
-4
3 additions, 4 deletions
src/Services/TestService.cpp
with
5 additions
and
6 deletions
inc/Services/TestService.hpp
+
2
−
2
View file @
7641dffe
...
@@ -15,14 +15,14 @@ public:
...
@@ -15,14 +15,14 @@ public:
/**
/**
* TC[17,1] perform an are-you-alive connection test
* TC[17,1] perform an are-you-alive connection test
*/
*/
void
areYouAlive
(
const
Message
&
request
);
void
areYouAlive
(
Message
&
request
);
/**
/**
* TC[17,3] perform an on-board connection test
* TC[17,3] perform an on-board connection test
*
*
* @todo Only respond if we have the correct APID
* @todo Only respond if we have the correct APID
*/
*/
void
onBoardConnection
(
const
Message
&
request
);
void
onBoardConnection
(
Message
&
request
);
};
};
...
...
This diff is collapsed.
Click to expand it.
src/Services/TestService.cpp
+
3
−
4
View file @
7641dffe
#include
"Services/TestService.hpp"
#include
"Services/TestService.hpp"
void
TestService
::
areYouAlive
(
const
Message
&
request
)
{
void
TestService
::
areYouAlive
(
Message
&
request
)
{
// TM[17,2] are-you-alive connection test report
// TM[17,2] are-you-alive connection test report
Message
report
=
createTM
(
2
);
Message
report
=
createTM
(
2
);
storeMessage
(
report
);
storeMessage
(
report
);
}
}
void
TestService
::
onBoardConnection
(
const
Message
&
request
)
{
void
TestService
::
onBoardConnection
(
Message
&
request
)
{
// TM[17,4] on-board connection test report
// TM[17,4] on-board connection test report
Message
report
=
createTM
(
4
);
Message
report
=
createTM
(
4
);
// TODO: This is not the correct way to do this! Fetching functions will be added later
report
.
appendUint16
(
request
.
readUint16
());
report
.
appendUint8
(
request
.
data
[
1
]);
storeMessage
(
report
);
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