fix: починил компенсацию gun flection
This commit is contained in:
parent
d8f7b865b9
commit
45b28f2e15
Binary file not shown.
@ -45,7 +45,7 @@ class PassportFormer(BasePointPassportFormer):
|
||||
tesla_time = sum(self._params[0].get("Tesla summary time", []))
|
||||
useful_data = {"tesla_time": tesla_time,
|
||||
"range_ME": system_settings["Range ME, mm"],
|
||||
"k_prop": system_settings["k_prop"]
|
||||
"k_hardness": system_settings["k_hardness_1"]
|
||||
}
|
||||
|
||||
points_pocket = []
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -227,7 +227,7 @@ class PlotWidget(BasePlotWidget):
|
||||
dataframe, points_pocket, useful_data = data
|
||||
tesla_time = useful_data["tesla_time"]
|
||||
range_ME = useful_data["range_ME"]
|
||||
k_prop = useful_data["k_prop"]
|
||||
k_hardness = useful_data["k_hardness"]
|
||||
dataframe_headers = dataframe.columns.tolist()
|
||||
|
||||
for widget_num, (channel, description) in enumerate(self._plt_channels.items()):
|
||||
@ -251,7 +251,7 @@ class PlotWidget(BasePlotWidget):
|
||||
# TODO: проверить корректность расчетов
|
||||
if settings["force compensation FE"]:
|
||||
force = useful_p_data["force"]
|
||||
F_comp = - force*k_prop/1000
|
||||
F_comp = - force/k_hardness
|
||||
point_idxs = dataframe[(dataframe["time"] >= point_timeframe[0]) & (dataframe["time"] <= point_timeframe[1])].index
|
||||
|
||||
dataframe.loc[point_idxs] = self._shift_data("FE", description["Real_signals"], dataframe.loc[point_idxs], F_comp)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user