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
97d19b82
Commit
97d19b82
authored
6 years ago
by
kongr45gpen
Browse files
Options
Downloads
Patches
Plain Diff
Fix spacing for some comments
parent
31082657
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inc/Helpers/TimeHelper.hpp
+7
-7
7 additions, 7 deletions
inc/Helpers/TimeHelper.hpp
with
7 additions
and
7 deletions
inc/Helpers/TimeHelper.hpp
+
7
−
7
View file @
97d19b82
...
...
@@ -33,8 +33,8 @@ struct TimeAndDate {
* 301.0-B-4 standard. The chosen time format is CDS and it is UTC-based (UTC: Coordinated
* Universal Time). It consists of two main fields: the time code preamble field (P-field) and
* the time specification field (T-field). The P-Field is the metadata for the T-Field. The
* T-Field is consisted of two segments: 1)the `DAY` and the 2)`ms of day` segments.
The P-field
* won't be included in the code, because as the ECSS standards claims, it can be
* T-Field is consisted of two segments: 1)
the `DAY` and the 2)
`ms of day` segments.
*
The P-field
won't be included in the code, because as the ECSS standards claims, it can be
* just implicitly declared.
*
* @note
...
...
@@ -65,8 +65,8 @@ public:
*
* @param TimeInfo the time information/data from the RTC (UTC format)
* @return the elapsed seconds between a given UTC date (after the Unix epoch) and Unix epoch
* @todo check if we need to change the epoch to the recommended from the standard, 1
January
* 1958
* @todo check if we need to change the epoch to the recommended
one
from the standard, 1
*
January
1958
*/
static
uint32_t
mkUTCtime
(
struct
TimeAndDate
&
TimeInfo
);
...
...
@@ -80,8 +80,8 @@ public:
*
* @param seconds elapsed seconds since Unix epoch
* @return the UTC date based on the \p seconds
* @todo check if we need to change the epoch to
,
the recommended from the standard, 1
January
* 1958
* @todo check if we need to change the epoch to the recommended
one
from the standard, 1
*
January
1958
*/
static
struct
TimeAndDate
utcTime
(
uint32_t
seconds
);
...
...
@@ -92,7 +92,7 @@ public:
* Converts a UTC date to CDS time format.
*
* @param TimeInfo is the data provided from RTC (UTC)
* @return TimeFormat the CDS time format. More specific, 48 bits are used for the
T-field
* @return TimeFormat the CDS time format. More specific, 48 bits are used for the T-field
* (16 for the `DAY` and 32 for the `ms of day`)
* @todo time security for critical time operations
* @todo declare the implicit P-field
...
...
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