Skip to content

Commit

Permalink
Added second tmc instance for current scaler
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultrawipf committed Feb 27, 2023
1 parent 201a1b4 commit 93d19c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axis_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def setCurrentScaler(self,x):
def updatePowerLabel(self,val):
text = str(val)
# If tmc is used show a current estimate
if(self.driver_id == 1 and self.adc_to_amps != 0):
if((self.driver_id == 1 or self.driver_id == 2) and self.adc_to_amps != 0):
current = (val * self.adc_to_amps)
text += " ("+str(round(current,1)) + "A)"
self.label_power.setText(text)
Expand Down

0 comments on commit 93d19c0

Please sign in to comment.