Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SRC OBDH TMTC
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
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
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
Robin Mueller
SRC OBDH TMTC
Commits
03596fa7
Commit
03596fa7
authored
5 years ago
by
Robin Mueller
Browse files
Options
Downloads
Patches
Plain Diff
tmtc script service 3 init
parent
c9b71479
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tm/OBSW_PusPacket.py
+8
-0
8 additions, 0 deletions
tm/OBSW_PusPacket.py
tm/OBSW_TmPacket.py
+9
-0
9 additions, 0 deletions
tm/OBSW_TmPacket.py
utility/OBSW_TmTcPrinter.py
+1
-1
1 addition, 1 deletion
utility/OBSW_TmTcPrinter.py
with
18 additions
and
1 deletion
tm/OBSW_PusPacket.py
+
8
−
0
View file @
03596fa7
...
...
@@ -134,6 +134,14 @@ class OBSWPusPacket:
def
getSSC
(
self
):
return
self
.
PUSHeader
.
sourceSequenceCount
def
printData
(
self
):
strToPrint
=
"
[
"
for
byte
in
self
.
data
:
strToPrint
+=
str
(
hex
(
byte
))
+
"
,
"
strToPrint
=
strToPrint
.
rstrip
(
'
,
'
)
strToPrint
+=
'
]
'
return
strToPrint
# Structure of a PUS Packet :
# A PUS packet consists of consecutive bits, the allocation and structure is standardised.
# Extended information can be found in ECSS-E-70-41A on p.42
...
...
This diff is collapsed.
Click to expand it.
tm/OBSW_TmPacket.py
+
9
−
0
View file @
03596fa7
...
...
@@ -133,13 +133,22 @@ class Service2TM(PUSTelemetry):
class
Service3TM
(
PUSTelemetry
):
def
__init__
(
self
,
byteArray
):
super
().
__init__
(
byteArray
)
self
.
sid
=
struct
.
unpack
(
'
>I
'
,
self
.
byteArrayData
[
0
:
4
])[
0
]
if
self
.
getSubservice
()
==
25
:
self
.
paramLength
=
len
(
self
.
byteArrayData
)
-
4
if
self
.
sid
==
0x1f00
:
pass
def
printTelemetryHeader
(
self
,
array
):
super
().
printTelemetryHeader
(
array
)
array
.
append
(
hex
(
self
.
sid
))
array
.
append
(
int
(
self
.
paramLength
))
return
def
printTelemetryColumnHeaders
(
self
,
array
):
super
().
printTelemetryColumnHeaders
(
array
)
array
.
append
(
"
SID
"
)
array
.
append
(
"
Number of Parameters
"
)
return
...
...
This diff is collapsed.
Click to expand it.
utility/OBSW_TmTcPrinter.py
+
1
−
1
View file @
03596fa7
...
...
@@ -13,7 +13,7 @@ import OBSW_Config as g
# TODO: Print everything in a file
class
TmtcPrinter
:
def
__init__
(
self
,
displayMode
,
doPrintToFile
,
printTc
):
def
__init__
(
self
,
displayMode
=
"
long
"
,
doPrintToFile
=
False
,
printTc
=
True
):
self
.
printBuffer
=
""
# global print buffer which will be useful to print something to file
self
.
fileBuffer
=
""
...
...
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