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
ca9a4afe
Unverified
Commit
ca9a4afe
authored
6 years ago
by
Dimitrios Stoupis
Browse files
Options
Downloads
Patches
Plain Diff
Add preliminary error reporting using ST[01]
parent
5ee27170
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Services/MemoryManagementService.cpp
+7
-3
7 additions, 3 deletions
src/Services/MemoryManagementService.cpp
with
7 additions
and
3 deletions
src/Services/MemoryManagementService.cpp
+
7
−
3
View file @
ca9a4afe
...
@@ -48,7 +48,9 @@ void MemoryManagementService::RawDataMemoryManagement::loadRawData(Message &requ
...
@@ -48,7 +48,9 @@ void MemoryManagementService::RawDataMemoryManagement::loadRawData(Message &requ
*
(
reinterpret_cast
<
uint8_t
*>
(
startAddress
)
+
i
)
=
readData
[
i
];
*
(
reinterpret_cast
<
uint8_t
*>
(
startAddress
)
+
i
)
=
readData
[
i
];
}
}
}
else
{
}
else
{
// requestVerificationService.failExecutionVerification(request.packetType, );
// todo: Implement the fail report the correct way when we know all parameters
mainService
.
requestVerificationService
.
failExecutionVerification
(
request
.
packetType
,
true
,
1
,
1
,
10
,
6
);
/* Send failed completion of execution */
/* Send failed completion of execution */
}
}
}
}
...
@@ -95,7 +97,8 @@ void MemoryManagementService::RawDataMemoryManagement::dumpRawData(Message &requ
...
@@ -95,7 +97,8 @@ void MemoryManagementService::RawDataMemoryManagement::dumpRawData(Message &requ
report
.
appendUint64
(
startAddress
);
// Start address
report
.
appendUint64
(
startAddress
);
// Start address
report
.
appendOctetString
(
readLength
,
readData
);
// Save the read data
report
.
appendOctetString
(
readLength
,
readData
);
// Save the read data
}
else
{
}
else
{
// requestVerificationService.failExecutionVerification(request.packetType, );
mainService
.
requestVerificationService
.
failExecutionVerification
(
request
.
packetType
,
true
,
1
,
1
,
10
,
6
);
/* Send wrong address failure report */
/* Send wrong address failure report */
}
}
}
}
...
@@ -147,7 +150,8 @@ void MemoryManagementService::RawDataMemoryManagement::checkRawData(Message &req
...
@@ -147,7 +150,8 @@ void MemoryManagementService::RawDataMemoryManagement::checkRawData(Message &req
// todo: Calculate and append checksum in the report
// todo: Calculate and append checksum in the report
//report.appendBits(16, /* checksum bits */);
//report.appendBits(16, /* checksum bits */);
}
else
{
}
else
{
// requestVerificationService.failExecutionVerification(request.packetType, );
mainService
.
requestVerificationService
.
failExecutionVerification
(
request
.
packetType
,
true
,
1
,
1
,
10
,
6
);
/* Failure of execution */
/* Failure of execution */
}
}
}
}
...
...
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