more org
This commit is contained in:
parent
b823c0d6d8
commit
9598a855c4
|
@ -1,4 +1,4 @@
|
||||||
from module import module
|
from .module import module
|
||||||
from random import randint
|
from random import randint
|
||||||
class gamma_sensor(module):
|
class gamma_sensor(module):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from module import module
|
from .module import module
|
||||||
|
|
||||||
class heartbeat_module(module):
|
class heartbeat_module(module):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from module import module
|
from .module import module
|
||||||
class location_module(module):
|
class location_module(module):
|
||||||
id_c = 0
|
id_c = 0
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
class module:
|
class module:
|
||||||
id_c = 0
|
id_c = 0
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from gamma import gamma_sensor
|
from modules.gamma import gamma_sensor
|
||||||
from heartbeat import heartbeat_module
|
from modules.heartbeat import heartbeat_module
|
||||||
from location import location_module
|
from modules.location import location_module
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from astropy.coordinates import SkyCoord as sc
|
from astropy.coordinates import SkyCoord as sc
|
||||||
from os import system
|
from os import system
|
||||||
|
@ -57,6 +57,7 @@ class sat:
|
||||||
|
|
||||||
for m in self.modules:
|
for m in self.modules:
|
||||||
self.modules[m].mod_update()
|
self.modules[m].mod_update()
|
||||||
|
|
||||||
if self.modules["heartbeat"].mod_get("kill")[0] == 1:
|
if self.modules["heartbeat"].mod_get("kill")[0] == 1:
|
||||||
print("heading to bed")
|
print("heading to bed")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue