dev: добавил возможность рисовать поле допусков для силы
This commit is contained in:
parent
7c0db070c9
commit
c3d976f6a6
Binary file not shown.
@ -222,6 +222,21 @@ class PlotWidget(BasePlotWidget):
|
||||
rect_item.setPen(pg.mkPen('black', width=3))
|
||||
plot_widget.addItem(rect_item)
|
||||
|
||||
if settings["force accuracy"]:
|
||||
modifier = 0.05
|
||||
|
||||
x1 = point_events["Welding"][0]
|
||||
dx = point_events["Welding"][1] - x1
|
||||
force = useful_p_data["force"]
|
||||
y1 = force*(1-modifier)
|
||||
dy = force*(2*modifier)
|
||||
|
||||
rect_item = QGraphicsRectItem(x1, y1, dx, dy)
|
||||
rect_item.setZValue(-5)
|
||||
rect_item.setBrush(pg.mkBrush((0,255,0, 50)))
|
||||
rect_item.setPen(pg.mkPen('black', width=0))
|
||||
plot_widget.addItem(rect_item)
|
||||
|
||||
# Добавляем идеальные стадии и идеальные сигналы
|
||||
if settings["ideals"]:
|
||||
self._add_ideal_stage_regions(plot_widget, ideal_data, point_events, reg_items, 100)
|
||||
|
||||
Binary file not shown.
@ -125,7 +125,8 @@ class BasePlotWidget:
|
||||
"ideals": False,
|
||||
"mirror ME": False,
|
||||
"workpiece": False,
|
||||
"force compensation FE": False
|
||||
"force compensation FE": False,
|
||||
"force accuracy":True
|
||||
},
|
||||
"Real_signals": [
|
||||
{
|
||||
@ -156,7 +157,8 @@ class BasePlotWidget:
|
||||
"ideals": False,
|
||||
"mirror ME": True,
|
||||
"workpiece": True,
|
||||
"force compensation FE": True
|
||||
"force compensation FE": True,
|
||||
"force accuracy":False
|
||||
},
|
||||
"Real_signals": [
|
||||
{
|
||||
@ -187,7 +189,8 @@ class BasePlotWidget:
|
||||
"ideals": True,
|
||||
"mirror ME": False,
|
||||
"workpiece": False,
|
||||
"force compensation FE": False
|
||||
"force compensation FE": False,
|
||||
"force accuracy":False
|
||||
},
|
||||
"Real_signals": [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user