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
 | 
			
		||||
class gamma_sensor(module):
 | 
			
		||||
	def __init__(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
from module import module
 | 
			
		||||
from .module import module
 | 
			
		||||
 | 
			
		||||
class heartbeat_module(module):
 | 
			
		||||
	def __init__(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
from module import module
 | 
			
		||||
from .module import module
 | 
			
		||||
class location_module(module):
 | 
			
		||||
	id_c = 0
 | 
			
		||||
	def __init__(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,3 @@
 | 
			
		|||
 | 
			
		||||
class module:
 | 
			
		||||
	id_c = 0
 | 
			
		||||
	def __init__(self, name):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue