-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradio_test.py
87 lines (66 loc) · 1.92 KB
/
radio_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# radio_test.py
# V1.0 June 24, 2024
# Authored by: Michael Pham
# The is a test script to facilitate a simple ping pong style communications test between two radios.
import time
from pysquared_eps import cubesat as c
debug_mode = True
options = ['A', 'B']
print(
'''
=======================================
| |
| WELCOME! |
| Solar Test Version 1.0 |
| |
=======================================
| Please Select Your Test |
| 'A': All Tests (WIP) |
| 'B': Solar Power (WIP) |
| 'C': All Sensors |
| 'D': (WIP) |
| 'E': (WIP) |
=======================================
'''
)
def debug_print(message):
if debug_mode:
print(message)
def run_all_tests():
# TODO Implement All Tests
print("Not implemented yet")
def all_sensors():
test_selection = input()
if test_selection not in options:
print("Invalid Selection.")
print("Please refresh the device and try again.")
else:
print(
'''
=======================================
| |
| Verbose Output? (Y/N) |
| |
=======================================
'''
)
verbose_selection = input()
if verbose_selection == 'Y':
debug_mode = True
elif verbose_selection == 'N':
debug_mode = False
print(
'''
=======================================
| |
| Beginning Radio Test |
| Radio Test Version 1.0 |
| |
=======================================
'''
)
while True:
if test_selection == 'A':
time.sleep(1)
elif test_selection == 'B':
time.sleep(1)