Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sil/core/universe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class Universe():

def __init__(self):
from pycubed import cubesat
from state_machine import state_machine
from config import initial
state_machine.start(initial)
self.cubesat = cubesat
self.state_machine = state_machine

def terminate(self):
self.state_machine.stop_all()
10 changes: 10 additions & 0 deletions sil/radio/contact_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from unittest import IsolatedAsyncioTestCase
from universe import Universe

class EstablishContact(IsolatedAsyncioTestCase):

async def test(self):
universe = Universe()
print('hi')
universe.terminate()
pass
1 change: 1 addition & 0 deletions sil/radio/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PYTHONPATH=drivers/emulation:drivers/emulation/lib:applications/flight:applications/flight/lib:frame:sil/core python3 -m unittest discover -s sil/radio -p '*_test.py'