Example #1
0
def init_coil_burner_system():
    # Set up GPIO pins
    try:
        GPIO.setup(loiter_settings.coil_value_1(), GPIO.OUT)
        GPIO.setup(loiter_settings.coil_value_2(), GPIO.OUT)
    except Exception as e:
        with open("systemLog.txt", "a") as logFile:
            logMsg1 = "Failed to initialize coil burners.\n"
            logMsg2 = "Error: {}\n\n".format(e)
            logFile.write(logMsg1)
            logFile.write(logMsg2)
Example #2
0
def coil_burner_2():
    GPIO.output(loiter_settings.coil_value_2(), GPIO.HIGH)  # Cut Lift Balloon
    time.sleep(loiter_settings.burn_time())
    GPIO.output(loiter_settings.coil_value_2(), GPIO.LOW)