From 9a7948451fa1510f5d635404dc91b226b5394232 Mon Sep 17 00:00:00 2001 From: thodkatz <thodkatz@gmail.com> Date: Mon, 25 Feb 2019 16:28:45 +0200 Subject: [PATCH] Initial structure of TC[9,128],a mission specific subservice --- inc/Services/TimeManagementService.hpp | 12 ++++++++++++ src/Services/TimeManagementService.cpp | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/inc/Services/TimeManagementService.hpp b/inc/Services/TimeManagementService.hpp index d006a5d7..0b4c727a 100644 --- a/inc/Services/TimeManagementService.hpp +++ b/inc/Services/TimeManagementService.hpp @@ -31,6 +31,18 @@ public: * or should ignore the standard? */ void cucTimeReport(); + + /** + * TC[9,128] + * + * This function is a custom subservice(mission specific) with message type 128(as defined + * from the standard for custom message types, 5.3.3.1.f) and it parses the data of the + * time-management telecommand packet + * + * @param messageTime The class-member `data` of /p has the data for the time configuration + * (a CUC format as described in the documentation of the class TimeHelper) + */ + void parseTime(Message &messageTime); }; diff --git a/src/Services/TimeManagementService.cpp b/src/Services/TimeManagementService.cpp index 2b3feb68..649ffe60 100644 --- a/src/Services/TimeManagementService.cpp +++ b/src/Services/TimeManagementService.cpp @@ -18,3 +18,7 @@ void TimeManagementService::cucTimeReport() { storeMessage(timeReport); } + +void TimeManagementService::parseTime(Message &messageTime) { + +} -- GitLab