Skip to content

Commit

Permalink
#60 increasing auto-cutdown altitude since the payload is predicted t…
Browse files Browse the repository at this point in the history
…o go higher
  • Loading branch information
DarylDohner committed Jul 4, 2023
1 parent 6a80e30 commit 84d767c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions EosPayload/drivers/cutdown_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import logging
import time

from EosLib.device import Device
from EosPayload.lib.base_drivers.position_aware_driver_base import PositionAwareDriverBase
from EosPayload.lib.mqtt import Topic

Expand All @@ -12,7 +11,7 @@
class CutdownDriver(PositionAwareDriverBase):
cutdown_pin = "P8_10"
time_pulled_high = 7 # seconds
auto_cutdown_altitude = 21000
auto_cutdown_altitude = 23000

def __init__(self, output_directory: str, config: dict) -> None:
super().__init__(output_directory, config)
Expand Down Expand Up @@ -68,5 +67,3 @@ def cutdown_trigger_mqtt(client, user_data, message):
user_data['logger'].info("received cutdown command")
user_data['queue'].put(1)

def cleanup(self):
GPIO.cleanup()

0 comments on commit 84d767c

Please sign in to comment.