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
45edd299
Commit
45edd299
authored
5 years ago
by
Robin.Mueller
Browse files
Options
Downloads
Patches
Plain Diff
gps service test for gps0 and gps1
parent
283ddb3a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
comIF/OBSW_Ethernet_ComIF.py
+2
-3
2 additions, 3 deletions
comIF/OBSW_Ethernet_ComIF.py
tc/OBSW_TcPacker.py
+4
-4
4 additions, 4 deletions
tc/OBSW_TcPacker.py
with
6 additions
and
7 deletions
comIF/OBSW_Ethernet_ComIF.py
+
2
−
3
View file @
45edd299
...
...
@@ -44,9 +44,8 @@ class EthernetComIF(CommunicationInterface):
ready
=
self
.
dataAvailable
(
pollTimeout
)
if
ready
is
False
:
pass
elif
ready
[
0
]:
packet
=
self
.
receiveTelemetry
()
self
.
tmtcPrinter
.
printTelemetry
(
packet
)
elif
ready
:
self
.
receiveTelemetry
()
def
receiveTelemetry
(
self
,
parameters
=
0
):
data
=
self
.
recvSocket
.
recvfrom
(
1024
)[
0
]
...
...
This diff is collapsed.
Click to expand it.
tc/OBSW_TcPacker.py
+
4
−
4
View file @
45edd299
...
...
@@ -37,11 +37,11 @@ def serviceTestSelect(service, serviceQueue):
return
packService200TestInto
(
serviceQueue
)
elif
service
==
"
Dummy
"
:
return
packDummyDeviceTestInto
(
serviceQueue
)
elif
service
==
"
GPS
"
:
elif
service
==
"
GPS
0
"
:
# Object ID: GPS Device
objectId
=
bytearray
([
0x44
,
0x00
,
0x1F
,
0x00
])
return
packGpsTestInto
(
objectId
,
serviceQueue
)
elif
service
==
"
r
GPS
"
:
elif
service
==
"
GPS
1
"
:
# Object ID: GPS Device
objectId
=
bytearray
([
0x44
,
0x00
,
0x20
,
0x00
])
return
packGpsTestInto
(
objectId
,
serviceQueue
)
...
...
@@ -153,8 +153,8 @@ def packGpsTestInto(objectId, tcQueue):
modeData
=
packModeData
(
objectId
,
1
,
0
)
command
=
PUSTelecommand
(
service
=
200
,
subservice
=
1
,
SSC
=
12
,
data
=
modeData
)
tcQueue
.
put
(
command
.
packCommandTuple
())
# pack wait interval until mode is on
e
tcQueue
.
put
((
"
wait
"
,
3
))
# pack wait interval until mode is on
and a few gps replies have been received
tcQueue
.
put
((
"
wait
"
,
6
))
# Set Mode Off
tcQueue
.
put
((
"
print
"
,
"
\n\r
Testing GPS: Set Off
"
))
modeData
=
packModeData
(
objectId
,
0
,
0
)
...
...
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