Fixed subindex of Ploop
This commit is contained in:
parent
9443f5e598
commit
9102812a6f
|
|
@ -265,7 +265,7 @@ class CANBackend:
|
|||
master_node.sdo[state_index][pu_number].raw = state_map[state] & 0xFF
|
||||
|
||||
print(f"[DEBUG] Writing ploop_setpoint {ploop_setpoint} to master OD 0x{setpoint_index:04X}:{pu_number:02X}")
|
||||
master_node.sdo[setpoint_index][pu_number].raw = int(ploop_setpoint * 100)
|
||||
master_node.sdo[setpoint_index][1].raw = int(ploop_setpoint * 100)
|
||||
|
||||
except Exception as e:
|
||||
print(f"[MASTER SDO WRITE ERROR] PU{pu_number}: {e}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user