From 9cfe7a48caa6f68522557c5f31b51ef3c02350d9 Mon Sep 17 00:00:00 2001 From: ryanpdx Date: Thu, 14 Dec 2023 02:30:50 -0800 Subject: [PATCH] remove pru control, prucam now handles it --- oresat_cfc/drivers/pirt1280.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/oresat_cfc/drivers/pirt1280.py b/oresat_cfc/drivers/pirt1280.py index e9c44a0..f181480 100644 --- a/oresat_cfc/drivers/pirt1280.py +++ b/oresat_cfc/drivers/pirt1280.py @@ -10,7 +10,7 @@ from time import sleep import numpy as np -from olaf import Adc, Gpio, Pru +from olaf import Adc, Gpio from spidev import SpiDev # pylint: disable=E0611 @@ -102,8 +102,6 @@ def __init__( self._spi = SpiDev() self._spi.open(spi_bus, spi_device) self._spi.max_speed_hz = self.SPI_HZ - self._pru0 = Pru(0) - self._pru1 = Pru(1) self._enabled = False @@ -115,8 +113,6 @@ def enable(self): # set the enable GPIO high if not self._mock: - self._pru1.start() # 1 before 0 - self._pru0.start() self._gpio.high() self._enabled = True @@ -137,8 +133,6 @@ def disable(self): """Disable the PIRT1280 (power it off).""" if not self._mock: - self._pru0.stop() - self._pru1.stop() self._gpio.low() self._enabled = False