This commit is contained in:
Laika 2021-07-08 20:17:25 -04:00
parent b823c0d6d8
commit 9598a855c4
5 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
from module import module
from .module import module
from random import randint
class gamma_sensor(module):
def __init__(self):

View file

@ -1,4 +1,4 @@
from module import module
from .module import module
class heartbeat_module(module):
def __init__(self):

View file

@ -1,4 +1,4 @@
from module import module
from .module import module
class location_module(module):
id_c = 0
def __init__(self):

View file

@ -1,4 +1,3 @@
class module:
id_c = 0
def __init__(self, name):

View file

@ -1,7 +1,7 @@
import numpy as np
from gamma import gamma_sensor
from heartbeat import heartbeat_module
from location import location_module
from modules.gamma import gamma_sensor
from modules.heartbeat import heartbeat_module
from modules.location import location_module
from time import sleep
from astropy.coordinates import SkyCoord as sc
from os import system
@ -57,6 +57,7 @@ class sat:
for m in self.modules:
self.modules[m].mod_update()
if self.modules["heartbeat"].mod_get("kill")[0] == 1:
print("heading to bed")
return