return north

# initialize text
text.init_text()

# initialize dataloggers
logger = DataLogger()
sense_logger = SenseLogger()

# set timedelta
time_between = timedelta(minutes=10)

# get initial orientations
base_orientation_yaw = find_orientation_by_yaw()
logger.log_orientation(base_orientation_yaw)
base_orientation_roll = find_orientation_by_roll()
logger.log_orientation(base_orientation_roll)

# get baseline for acceleration
base_acc = baseline_acceleration()
last_baseline = datetime.now()

while True:
    # Log data to Senselogg
    sense_logger.log_data()

    # show a random animation
    animation.show_animation()
    
    # find thrust
Example #2
0
baseline = 0
astronaut_status = False
sense = SenseHat()
sense.set_rotation(270)

# initialize text
text.init_text()

# initialize loggers
astrologger = AstroLogger()
datalogger = DataLogger()
senselogger = SenseLogger()

# get initial orientations
base_orientation_yaw = find_orientation_by_yaw()
datalogger.log_orientation(base_orientation_yaw)
base_orientation_roll = find_orientation_by_roll()
datalogger.log_orientation(base_orientation_roll)

# get baseline for acceleration
base_acc = baseline_acceleration()

# read baseline humidity until less than 1% variation
baseline = baseline_humidity()
last_baseline = datetime.now()

# set timedelta between each new baseline
time_between = timedelta(minutes=10)

while True:
    # find astronaut and log findings to astrologg