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
48cdd214
Commit
48cdd214
authored
5 years ago
by
Robin.Mueller
Browse files
Options
Downloads
Patches
Plain Diff
srv3 continued
parent
c22570d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
obsw_tmtc_client.py
+2
-2
2 additions, 2 deletions
obsw_tmtc_client.py
tc/obsw_tc_service3.py
+12
-6
12 additions, 6 deletions
tc/obsw_tc_service3.py
with
14 additions
and
8 deletions
obsw_tmtc_client.py
+
2
−
2
View file @
48cdd214
...
...
@@ -188,7 +188,7 @@ class TmTcHandler:
tm_listener
=
self
.
tm_listener
,
tc_queue
=
service_queue
)
sender_and_receiver
.
send_queue_tc_and_receive_tm_sequentially
()
self
.
command_received
=
True
self
.
mode
=
g
.
ModeList
.
Prompt
Mode
self
.
mode
=
g
.
ModeList
.
Listener
Mode
elif
self
.
mode
==
g
.
ModeList
.
SoftwareTestMode
:
all_tc_queue
=
create_total_tc_queue
()
...
...
@@ -205,7 +205,7 @@ class TmTcHandler:
# mode
perform_binary_upload
()
self
.
command_received
=
True
self
.
mode
=
g
.
ModeList
.
Prompt
Mode
self
.
mode
=
g
.
ModeList
.
Listener
Mode
elif
self
.
mode
==
g
.
ModeList
.
UnitTest
:
# Set up test suite and run it with runner. Verbosity specifies detail level
...
...
This diff is collapsed.
Click to expand it.
tc/obsw_tc_service3.py
+
12
−
6
View file @
48cdd214
...
...
@@ -28,23 +28,29 @@ number_of_parameters = struct.pack('>B', 5)
def
pack_service3_test_into
(
tc_queue
:
Deque
)
->
Deque
:
tc_queue
.
appendleft
((
"
print
"
,
"
Testing Service 3
"
))
# Predefined packet testing
#
pack_
predefined
_test
s
(tc_queue)
pack_
test_device
_test
(
tc_queue
)
pack_custom_tests
(
tc_queue
)
tc_queue
.
appendleft
((
"
export
"
,
"
log/tmtc_log_service3.txt
"
))
return
tc_queue
def
pack_test_device_test
(
tc_queue
):
pass
def
pack_custom_tests
(
tc_queue
:
Deque
):
# deleting pre-defined test entry
tc_queue
.
appendleft
((
"
print
"
,
"
Testing Service 3:
"
))
tc_queue
.
appendleft
((
"
print
"
,
"
Generate one Thermal Sensor packet:
"
))
command
=
PusTelecommand
(
service
=
3
,
subservice
=
27
,
ssc
=
3100
,
app_data
=
sid_thermalsensor
)
tc_queue
.
appendleft
(
command
.
pack_command_tuple
())
# tc_queue.appendleft(("print", "Enabling periodic Thermal Sensor packet generation: "))
# command = PusTelecommand(service=3, subservice=5, ssc=3101, app_data=sid_thermalsensor)
# tc_queue.appendleft(command.pack_command_tuple())
#
tc_queue
.
appendleft
((
"
print
"
,
"
Enabling periodic Thermal Sensor packet generation:
"
))
command
=
PusTelecommand
(
service
=
3
,
subservice
=
5
,
ssc
=
3101
,
app_data
=
sid_thermalsensor
)
tc_queue
.
appendleft
(
command
.
pack_command_tuple
())
tc_queue
.
appendleft
((
"
wait
"
,
5
))
# new_interval = 1.0
# interval_app_data = sid_thermalsensor + make_interval(new_interval)
# tc_queue.appendleft(("print", "Setting interval to one second: "))
...
...
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