ccsds

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ccsds implements part of The Consultative Committee for Space Data Systems (CCSDS) "Time Code Formats" (CCSDS 301.0-B-2 - CCSDS 301.0-B-4).

Index

Constants

This section is empty.

Variables

View Source
var Specification string = "ECSS-E-70-41A"

Specification describes what version the current implementation follows

View Source
var TAI = time.Date(1958, time.January, 1, 0, 0, 0, 0, time.UTC)

TAI is the CCSDS recommended epoch for unsegmented time

Functions

func UnsegmentedTimeDate

func UnsegmentedTimeDate(coarseTime uint32, fineTime uint16, epoch time.Time) time.Time

UnsegmentedTimeDate iterprets CCSDS Unsegmented time Code (CUC) and returns the time in UTC.

It assumes the CUC Time follows the recommendation of having seconds as units and follows the CCSDS 301.0-B-2 - CCSDS 301.0-B-4 specification in the specification.

* coarseTime is time since epoch in seconds * fineTime is subseconds is a binary division of a second * epoch is the reference time, such as e.g. TAI

func UnsegmentedTimeNanoseconds

func UnsegmentedTimeNanoseconds(coarseTime uint32, fineTime uint16) int64

UnsegmentedTimeNanoseconds interprets CCSDS Unsegmented time Code (CUC) and returns the nanoseconds since epoch.

It assumes the CUC Time follows the recommendation of having seconds as units and follows the CCSDS 301.0-B-2 - CCSDS 301.0-B-4 specification in the specification.

* coarseTime is time since epoch in seconds * fineTime is subseconds is a binary division of a second

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL