Documentation ¶
Index ¶
- Constants
- Variables
- func AcquisitionTimeFromEpoch(s int64) int64
- func AdjustAcquisitionTime(s int64) time.Time
- func AdjustGenerationTime(s int64) time.Time
- func AdjustTime(t time.Time, g bool) time.Time
- func GenerationTimeFromEpoch(s int64) int64
- func Listen(p, s string) (io.Reader, error)
- func Valid(p HRPacket) bool
- func Walk(p, s string) (io.Reader, error)
- type Bitmap
- type CCSDSHeader
- type CCSDSPacketSegmentation
- type CCSDSPacketType
- type Channel
- type Decoder
- type DecoderFunc
- type ESAHeader
- type ESAPacketTime
- type ESAPacketType
- type Exporter
- type Four
- type HRPacket
- type IDHv1
- type IDHv2
- type Image
- func (i *Image) Bytes() ([]byte, error)
- func (i *Image) Export(w io.Writer, f string) error
- func (i *Image) ExportRaw(w io.Writer) error
- func (i *Image) Filename() string
- func (i *Image) Format() string
- func (i *Image) IsRealtime() bool
- func (i *Image) Origin() string
- func (i *Image) Payload() []byte
- func (i *Image) Sequence() uint32
- func (i *Image) Timestamp() time.Time
- func (i *Image) Version() int
- type Item
- type Packet
- type Parameter
- type Reader
- type SDHv1
- type SDHv2
- type Schema
- type Table
- func (t *Table) Bytes() ([]byte, error)
- func (t *Table) Export(w io.Writer, _ string) error
- func (t *Table) ExportRaw(w io.Writer) error
- func (t *Table) Filename() string
- func (t *Table) Format() string
- func (t *Table) IsRealtime() bool
- func (t *Table) Origin() string
- func (t *Table) Payload() []byte
- func (t *Table) Sequence() uint32
- func (t *Table) Timestamp() time.Time
- func (t *Table) Version() int
- type Telemetry
- type UMIDataType
- type UMIHeader
- type UMIPacketState
- type VMUHeader
Constants ¶
View Source
const ( TagPP = 0x06 TagTM = 0x0B )
View Source
const ( HRDPHeaderLength = 14 HRDLSyncLength = 8 VMUHeaderLength = 16 IDHeaderLengthV1 = 72 IDHeaderLengthV2 = 76 SDHeaderLengthV2 = 56 SDHeaderLengthV1 = 8 CheckTrailerLength = 4 )
View Source
const ( VMUProtocol1 = iota + 1 VMUProtocol2 )
View Source
const ( RUBUnit uint8 = 0x36 Alv1 = 0x39 Alv2 = 0x40 SMDUnit = 0x41 LRSD = 0x51 LCP = 0x90 )
View Source
const ( CCSDSLength = 6 ESALength = 10 UMILength = 21 )
View Source
const UPILen = 32
Variables ¶
View Source
var ( GPS = time.Date(1980, 1, 6, 0, 0, 0, 0, time.UTC) UNIX = time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC) )
View Source
var ( ErrDone = errors.New("done") ErrSkip = errors.New("skip") ErrTooShort = errors.New("not enough bytes available") )
View Source
var ( MMA = []byte("MMA ") CORR = []byte("CORR") SYNC = []byte("SYNC") RAW = []byte("RAW ") Y800 = []byte("Y800") Y16B = []byte("Y16 ") Y16L = []byte("Y16L") I420 = []byte("I420") YUY2 = []byte("YUY2") RGB = []byte("RGB ") JPEG = []byte("JPEG") PNG = []byte("PNG ") H264 = []byte("H264") SVS = []byte("SVS ") TIFF = []byte("TIFF") )
View Source
var BufferSize = 1024 * 1024 * 4
Functions ¶
func AdjustAcquisitionTime ¶
func AdjustGenerationTime ¶
func GenerationTimeFromEpoch ¶
Types ¶
type CCSDSHeader ¶
func (CCSDSHeader) Apid ¶
func (c CCSDSHeader) Apid() int
func (CCSDSHeader) Len ¶
func (c CCSDSHeader) Len() int
func (CCSDSHeader) SegmentationFlag ¶
func (c CCSDSHeader) SegmentationFlag() CCSDSPacketSegmentation
func (CCSDSHeader) Sequence ¶
func (c CCSDSHeader) Sequence() int
type CCSDSPacketSegmentation ¶
type CCSDSPacketSegmentation int
const ( ContinuationPacket CCSDSPacketSegmentation = iota StartPacket StopPacket UnsegmentedPacket )
func (CCSDSPacketSegmentation) String ¶
func (c CCSDSPacketSegmentation) String() string
type CCSDSPacketType ¶
type CCSDSPacketType int
const ( SystemPacket CCSDSPacketType = iota PayloadPacket )
type DecoderFunc ¶
type ESAHeader ¶
func (ESAHeader) PacketType ¶
func (e ESAHeader) PacketType() ESAPacketType
type ESAPacketTime ¶
type ESAPacketTime int
const ( TimeNotUsed ESAPacketTime = iota TimeGenerated TimeExecuted TimeInvalid )
type ESAPacketType ¶
type ESAPacketType int
const ( Default ESAPacketType = iota DataDump DataSegment EssentialHk SystemHk PayloadHk ScienceData AncillaryData EssentialCmd SystemCmd PayloadCmd DataLoad Response Report Exception Acknowledge )
func (ESAPacketType) String ¶
func (e ESAPacketType) String() string
func (ESAPacketType) Type ¶
func (e ESAPacketType) Type() string
type IDHv1 ¶
type IDHv1 struct { XMLName xml.Name `xml:"metadata"` Sequence uint32 Coarse uint32 Fine uint16 Part uint8 Video uint8 Type uint8 Rate float32 Pixels uint32 Region uint64 LineDrop uint8 FrameDrop uint16 Info [32]byte }
func (*IDHv1) MarshalXML ¶
type IDHv2 ¶
type IDHv2 struct { XMLName xml.Name `xml:"metadata"` Properties uint8 Sequence uint16 Originator uint32 Acquisition time.Duration Auxiliary time.Duration Id uint8 Type uint8 Pixels uint32 Region uint64 Dropping uint16 Scaling uint32 Ratio uint8 Info [32]byte }
func (*IDHv2) MarshalXML ¶
type Image ¶
func (*Image) IsRealtime ¶
type Item ¶
type SDHv2 ¶
type Schema ¶
type Table ¶
func (*Table) IsRealtime ¶
type UMIDataType ¶
type UMIDataType uint8
const ( Int32 UMIDataType = iota + 1 Float64 Binary8 Reference String8 Long Decimal Real Exponent Time DateTime StringN BinaryN Bit )
func (UMIDataType) String ¶
func (u UMIDataType) String() string
type UMIHeader ¶
type UMIHeader struct { State UMIPacketState Orbit [4]byte Code [6]byte Type UMIDataType Unit uint16 Coarse uint32 Fine uint8 Length uint16 }
type UMIPacketState ¶
type UMIPacketState uint8
const ( NoValue UMIPacketState = iota SameValue NewValue LatestValue ErrorValue )
func (UMIPacketState) String ¶
func (u UMIPacketState) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.