Skip to content
Snippets Groups Projects
Unverified Commit a7105c45 authored by Dimitrios Stoupis's avatar Dimitrios Stoupis
Browse files

Fixed a wrong assertion and defined the remaining functions

parent f476caa0
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ void TimeBasedCommandSchedulingService::timeShiftAllActivities(Message &request)
// Check if the correct packet is being processed
assert(request.serviceType == 11);
assert(request.messageType == 5);
assert(request.messageType == 15);
uint16_t iterationCount = request.readUint16(); // Get the iteration count, (N)
for (std::size_t i = 0; i < iterationCount; i++) {
......@@ -87,7 +87,7 @@ void TimeBasedCommandSchedulingService::timeShiftActivitiesByID(Message &request
// Check if the correct packet is being processed
assert(request.serviceType == 11);
assert(request.messageType == 5);
assert(request.messageType == 7);
uint32_t relativeOffset = request.readUint32(); // Get the offset first
/*
......@@ -106,4 +106,32 @@ void TimeBasedCommandSchedulingService::timeShiftActivitiesByID(Message &request
}
}
void TimeBasedCommandSchedulingService::deleteActivitiesByID(Message &request) {
// Check if the correct packet is being processed
assert(request.serviceType == 11);
assert(request.messageType == 5);
}
void TimeBasedCommandSchedulingService::detailReportAllActivities(Message &request) {
// Check if the correct packet is being processed
assert(request.serviceType == 11);
assert(request.messageType == 16);
// todo: add an extra check for the vector size to make sure it matches with
// currentNumberOfActivities?
for (auto const& activity : scheduledActivities) {
// Create the report message object of telemetry message subtype 10 for each activity
Message report = createTM(10);
// todo: append sub-schedule and group ID if they are defined
// todo: append the release time of the current activity "activity.requestReleaseTime;"
// todo: append the request contained in the activity "activity.request;"
storeMessage(report); // Save the report
request.resetRead(); // todo: define if this statement is required
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment