Skip to content

Commit

Permalink
remove pru control, prucam now handles it
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Dec 14, 2023
1 parent 1ad3843 commit 9cfe7a4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions oresat_cfc/drivers/pirt1280.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9cfe7a4

Please sign in to comment.