Skip to content

Commit 97a65ae

Browse files
committed
Update expo ui
1 parent cfede2e commit 97a65ae

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

expo_ui.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,19 @@ def __init__(self, parent: 'ExpoTuneDialog' = None,axis : int = 0):
3737

3838
def exposcaleCb(self,val):
3939
self.exposcale = val
40+
#self.updateExponent(self.expo)
4041

4142
def expoSliderCb(self,val):
4243
self.send_value("axis","expo",val,instance=self.axis)
4344
self.updateExponent(val)
4445

4546
def exponentCb(self,val):
47+
self.updateExponent(val)
4648
self.horizontalSlider_expo.setValue(val)
4749

4850
def updateExponent(self,val):
4951
if self.exposcale == 0:
52+
self.send_commands("axis",["exposcale"],self.axis)
5053
return # Or get scaler again
5154
# expoValInt = val
5255
if(val == 0):
@@ -126,7 +129,7 @@ def updateCurve(self,exponent):
126129

127130
xv = [i / 100 for i in range(-100,100,1)]
128131
for x in xv:
129-
y = self.calcExpo(x,self.expo)
132+
y = self.calcExpo(x,exponent)
130133
# yv = [self.calcExpo(i,self.expo) for i in xv]
131134
q_line.append(x,y)
132135

res/axis_ui.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
<bool>false</bool>
260260
</property>
261261
<property name="text">
262-
<string>Expo tuning...</string>
262+
<string>Torque curve...</string>
263263
</property>
264264
</widget>
265265
</item>

res/expo.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<item row="0" column="0">
3030
<widget class="QGroupBox" name="groupBox">
3131
<property name="title">
32-
<string>Exponential torque curve correction</string>
32+
<string>Exponential torque curve correction (Gamma function)</string>
3333
</property>
3434
<layout class="QGridLayout" name="gridLayout_2">
3535
<property name="leftMargin">

0 commit comments

Comments
 (0)