Commit 1a0a5074 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Enables dps in hardware_system

Showing with 4 additions and 4 deletions
+4 -4
......@@ -149,9 +149,9 @@ class Tx(TxAbstract):
def gain_auto(self):
self._adc_gain_auto()
def inject(self, polarity=1, injection_duration=None):
def inject(self, polarity=1, injection_duration=None, switch_pwr=False):
self.polarity = polarity
TxAbstract.inject(self, polarity=polarity, injection_duration=injection_duration)
TxAbstract.inject(self, polarity=polarity, injection_duration=injection_duration, switch_pwr=switch_pwr)
@property
def polarity(self):
......
......@@ -93,10 +93,10 @@ class Tx(Tx_mb_2023):
if not subclass_init:
self.exec_logger.event(f'{self.model}\ttx_init\tend\t{datetime.datetime.utcnow()}')
def inject(self, polarity=1, injection_duration=None):
def inject(self, polarity=1, injection_duration=None,switch_pwr=True):
# add leds?
self.pin6.value=True
Tx_mb_2023.inject(self, polarity=polarity, injection_duration=injection_duration,switch_pwr=True)
Tx_mb_2023.inject(self, polarity=polarity, injection_duration=injection_duration,switch_pwr=switch_pwr)
self.pin6.value = False
@property
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment