Commit 2197d511 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Tries enabling switch_pwr during injection for polarity 0 on pwr_batt and pwr_dps5005_fixed

Showing with 2 additions and 1 deletion
+2 -1
...@@ -105,7 +105,7 @@ class Tx(TxAbstract): ...@@ -105,7 +105,7 @@ class Tx(TxAbstract):
self.pin0.direction = Direction.OUTPUT self.pin0.direction = Direction.OUTPUT
self.pin1 = self.mcp_board.get_pin(1) self.pin1 = self.mcp_board.get_pin(1)
self.pin1.direction = Direction.OUTPUT self.pin1.direction = Direction.OUTPUT
self.polarity = 0 #self.polarity = 0
self.gain = 2 / 3 self.gain = 2 / 3
if not subclass_init: if not subclass_init:
self.exec_logger.event(f'{self.model}\ttx_init\tend\t{datetime.datetime.utcnow()}') self.exec_logger.event(f'{self.model}\ttx_init\tend\t{datetime.datetime.utcnow()}')
......
...@@ -137,6 +137,7 @@ class OhmPiHardware: ...@@ -137,6 +137,7 @@ class OhmPiHardware:
if isinstance(self.tx, dict): if isinstance(self.tx, dict):
self.tx = tx_module.Tx(**self.tx) self.tx = tx_module.Tx(**self.tx)
self.tx.pwr = self.pwr self.tx.pwr = self.pwr
self.tx.polarity = 0
self.tx.pwr._current_max = current_max self.tx.pwr._current_max = current_max
# Initialize Muxes # Initialize Muxes
......
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