mirror of
https://forge.apps.education.fr/blender-edutech/jumeaux-numeriques.git
synced 2024-01-27 06:56:18 +01:00
Migrations : Qt5 -> Qt6
This commit is contained in:
parent
d9ea3f6ba3
commit
f28e47139c
198
portail_coulissant/porcou.csv
Normal file
198
portail_coulissant/porcou.csv
Normal file
@ -0,0 +1,198 @@
|
||||
t;mot_angle;mot_vitesse;portail_x;portail_vitesse
|
||||
0,168;-4,187;-12,44;-0,732;-2,176
|
||||
0,337;-6,28;-12,44;-1,098;-2,176
|
||||
0,505;-8,373;-12,44;-1,465;-2,176
|
||||
0,673;-10,467;-12,44;-1,831;-2,176
|
||||
0,841;-12,56;-12,44;-2,197;-2,176
|
||||
0,858;-12,56;0,0;-2,197;0,0
|
||||
0,875;-12,56;0,0;-2,197;0,0
|
||||
0,891;-12,56;0,0;-2,197;0,0
|
||||
0,908;-12,56;0,0;-2,197;0,0
|
||||
0,925;-12,56;0,0;-2,197;0,0
|
||||
0,941;-12,56;0,0;-2,197;0,0
|
||||
0,958;-12,56;0,0;-2,197;0,0
|
||||
0,975;-12,56;0,0;-2,197;0,0
|
||||
0,991;-12,56;0,0;-2,197;0,0
|
||||
1,008;-12,56;0,0;-2,197;0,0
|
||||
1,025;-12,56;0,0;-2,197;0,0
|
||||
1,041;-12,56;0,0;-2,197;0,0
|
||||
1,058;-12,56;0,0;-2,197;0,0
|
||||
1,075;-12,56;0,0;-2,197;0,0
|
||||
1,091;-12,56;0,0;-2,197;0,0
|
||||
1,108;-12,56;0,0;-2,197;0,0
|
||||
1,125;-12,56;0,0;-2,197;0,0
|
||||
1,141;-12,56;0,0;-2,197;0,0
|
||||
1,158;-12,56;0,0;-2,197;0,0
|
||||
1,175;-12,56;0,0;-2,197;0,0
|
||||
1,191;-12,56;0,0;-2,197;0,0
|
||||
1,208;-12,56;0,0;-2,197;0,0
|
||||
1,225;-12,56;0,0;-2,197;0,0
|
||||
1,241;-12,56;0,0;-2,197;0,0
|
||||
1,258;-12,56;0,0;-2,197;0,0
|
||||
1,275;-12,56;0,0;-2,197;0,0
|
||||
1,291;-12,56;0,0;-2,197;0,0
|
||||
1,308;-12,56;0,0;-2,197;0,0
|
||||
1,325;-12,56;0,0;-2,197;0,0
|
||||
1,341;-12,56;0,0;-2,197;0,0
|
||||
1,358;-12,56;0,0;-2,197;0,0
|
||||
1,375;-12,56;0,0;-2,197;0,0
|
||||
1,391;-12,56;0,0;-2,197;0,0
|
||||
1,408;-12,56;0,0;-2,197;0,0
|
||||
1,425;-12,56;0,0;-2,197;0,0
|
||||
1,441;-12,56;0,0;-2,197;0,0
|
||||
1,458;-12,56;0,0;-2,197;0,0
|
||||
1,475;-12,56;0,0;-2,197;0,0
|
||||
1,491;-12,56;0,0;-2,197;0,0
|
||||
1,508;-12,56;0,0;-2,197;0,0
|
||||
1,525;-12,56;0,0;-2,197;0,0
|
||||
1,541;-12,56;0,0;-2,197;0,0
|
||||
1,558;-12,56;0,0;-2,197;0,0
|
||||
1,575;-12,56;0,0;-2,197;0,0
|
||||
1,591;-12,56;0,0;-2,197;0,0
|
||||
1,608;-12,56;0,0;-2,197;0,0
|
||||
1,625;-12,56;0,0;-2,197;0,0
|
||||
1,641;-12,56;0,0;-2,197;0,0
|
||||
1,658;-12,56;0,0;-2,197;0,0
|
||||
1,675;-12,56;0,0;-2,197;0,0
|
||||
1,691;-12,56;0,0;-2,197;0,0
|
||||
1,708;-12,56;0,0;-2,197;0,0
|
||||
1,725;-12,56;0,0;-2,197;0,0
|
||||
1,741;-12,56;0,0;-2,197;0,0
|
||||
1,758;-12,56;0,0;-2,197;0,0
|
||||
1,775;-12,56;0,0;-2,197;0,0
|
||||
1,791;-12,56;0,0;-2,197;0,0
|
||||
1,808;-12,56;0,0;-2,197;0,0
|
||||
1,825;-12,56;0,0;-2,197;0,0
|
||||
1,841;-12,56;0,0;-2,197;0,0
|
||||
1,858;-12,56;0,0;-2,197;0,0
|
||||
1,875;-12,56;0,0;-2,197;0,0
|
||||
1,891;-12,56;0,0;-2,197;0,0
|
||||
1,908;-12,56;0,0;-2,197;0,0
|
||||
1,925;-12,56;0,0;-2,197;0,0
|
||||
1,941;-12,56;0,0;-2,197;0,0
|
||||
1,958;-12,56;0,0;-2,197;0,0
|
||||
1,975;-12,56;0,0;-2,197;0,0
|
||||
1,991;-12,56;0,0;-2,197;0,0
|
||||
2,008;-12,56;0,0;-2,197;0,0
|
||||
2,025;-12,56;0,0;-2,197;0,0
|
||||
2,041;-12,56;0,0;-2,197;0,0
|
||||
2,058;-12,56;0,0;-2,197;0,0
|
||||
2,075;-12,56;0,0;-2,197;0,0
|
||||
2,091;-12,56;0,0;-2,197;0,0
|
||||
2,108;-12,56;0,0;-2,197;0,0
|
||||
2,125;-12,56;0,0;-2,197;0,0
|
||||
2,141;-12,56;0,0;-2,197;0,0
|
||||
2,158;-12,56;0,0;-2,197;0,0
|
||||
2,175;-12,56;0,0;-2,197;0,0
|
||||
2,191;-12,56;0,0;-2,197;0,0
|
||||
2,208;-12,56;0,0;-2,197;0,0
|
||||
2,225;-12,56;0,0;-2,197;0,0
|
||||
2,241;-12,56;0,0;-2,197;0,0
|
||||
2,258;-12,56;0,0;-2,197;0,0
|
||||
2,275;-12,56;0,0;-2,197;0,0
|
||||
2,291;-12,56;0,0;-2,197;0,0
|
||||
2,308;-12,56;0,0;-2,197;0,0
|
||||
2,325;-12,56;0,0;-2,197;0,0
|
||||
2,341;-12,56;0,0;-2,197;0,0
|
||||
2,358;-12,56;0,0;-2,197;0,0
|
||||
2,375;-12,56;0,0;-2,197;0,0
|
||||
2,391;-12,56;0,0;-2,197;0,0
|
||||
2,408;-12,56;0,0;-2,197;0,0
|
||||
2,425;-12,56;0,0;-2,197;0,0
|
||||
2,441;-12,56;0,0;-2,197;0,0
|
||||
2,458;-12,56;0,0;-2,197;0,0
|
||||
2,475;-12,56;0,0;-2,197;0,0
|
||||
2,491;-12,56;0,0;-2,197;0,0
|
||||
2,508;-12,56;0,0;-2,197;0,0
|
||||
2,525;-12,56;0,0;-2,197;0,0
|
||||
2,541;-12,56;0,0;-2,197;0,0
|
||||
2,558;-12,56;0,0;-2,197;0,0
|
||||
2,575;-12,56;0,0;-2,197;0,0
|
||||
2,591;-12,56;0,0;-2,197;0,0
|
||||
2,608;-12,56;0,0;-2,197;0,0
|
||||
2,625;-12,56;0,0;-2,197;0,0
|
||||
2,641;-12,56;0,0;-2,197;0,0
|
||||
2,658;-12,56;0,0;-2,197;0,0
|
||||
2,675;-12,56;0,0;-2,197;0,0
|
||||
2,691;-12,56;0,0;-2,197;0,0
|
||||
2,708;-12,56;0,0;-2,197;0,0
|
||||
2,725;-12,56;0,0;-2,197;0,0
|
||||
2,741;-12,56;0,0;-2,197;0,0
|
||||
2,758;-12,56;0,0;-2,197;0,0
|
||||
2,775;-12,56;0,0;-2,197;0,0
|
||||
2,791;-12,56;0,0;-2,197;0,0
|
||||
2,808;-12,56;0,0;-2,197;0,0
|
||||
2,825;-12,56;0,0;-2,197;0,0
|
||||
2,841;-12,56;0,0;-2,197;0,0
|
||||
2,858;-12,56;0,0;-2,197;0,0
|
||||
2,875;-12,56;0,0;-2,197;0,0
|
||||
2,891;-12,56;0,0;-2,197;0,0
|
||||
2,908;-12,56;0,0;-2,197;0,0
|
||||
2,925;-12,56;0,0;-2,197;0,0
|
||||
2,941;-12,56;0,0;-2,197;0,0
|
||||
2,958;-12,56;0,0;-2,197;0,0
|
||||
2,975;-12,56;0,0;-2,197;0,0
|
||||
2,991;-12,56;0,0;-2,197;0,0
|
||||
3,008;-12,56;0,0;-2,197;0,0
|
||||
3,025;-12,56;0,0;-2,197;0,0
|
||||
3,041;-12,56;0,0;-2,197;0,0
|
||||
3,058;-12,56;0,0;-2,197;0,0
|
||||
3,075;-12,56;0,0;-2,197;0,0
|
||||
3,091;-12,56;0,0;-2,197;0,0
|
||||
3,108;-12,56;0,0;-2,197;0,0
|
||||
3,125;-12,56;0,0;-2,197;0,0
|
||||
3,141;-12,56;0,0;-2,197;0,0
|
||||
3,158;-12,56;0,0;-2,197;0,0
|
||||
3,175;-12,56;0,0;-2,197;0,0
|
||||
3,191;-12,56;0,0;-2,197;0,0
|
||||
3,208;-12,56;0,0;-2,197;0,0
|
||||
3,225;-12,56;0,0;-2,197;0,0
|
||||
3,241;-12,56;0,0;-2,197;0,0
|
||||
3,258;-12,56;0,0;-2,197;0,0
|
||||
3,275;-12,56;0,0;-2,197;0,0
|
||||
3,291;-12,56;0,0;-2,197;0,0
|
||||
3,308;-12,56;0,0;-2,197;0,0
|
||||
3,325;-12,56;0,0;-2,197;0,0
|
||||
3,341;-12,56;0,0;-2,197;0,0
|
||||
3,358;-12,56;0,0;-2,197;0,0
|
||||
3,375;-12,56;0,0;-2,197;0,0
|
||||
3,391;-12,56;0,0;-2,197;0,0
|
||||
3,408;-12,56;0,0;-2,197;0,0
|
||||
3,425;-12,56;0,0;-2,197;0,0
|
||||
3,441;-12,56;0,0;-2,197;0,0
|
||||
3,458;-12,56;0,0;-2,197;0,0
|
||||
3,475;-12,56;0,0;-2,197;0,0
|
||||
3,491;-12,56;0,0;-2,197;0,0
|
||||
3,508;-12,56;0,0;-2,197;0,0
|
||||
3,525;-12,56;0,0;-2,197;0,0
|
||||
3,541;-12,56;0,0;-2,197;0,0
|
||||
3,558;-12,56;0,0;-2,197;0,0
|
||||
3,575;-12,56;0,0;-2,197;0,0
|
||||
3,591;-12,56;0,0;-2,197;0,0
|
||||
3,608;-12,56;0,0;-2,197;0,0
|
||||
3,625;-12,56;0,0;-2,197;0,0
|
||||
3,641;-12,56;0,0;-2,197;0,0
|
||||
3,658;-12,56;0,0;-2,197;0,0
|
||||
3,675;-12,56;0,0;-2,197;0,0
|
||||
3,691;-12,56;0,0;-2,197;0,0
|
||||
3,708;-12,56;0,0;-2,197;0,0
|
||||
3,725;-12,56;0,0;-2,197;0,0
|
||||
3,741;-12,56;0,0;-2,197;0,0
|
||||
3,758;-12,56;0,0;-2,197;0,0
|
||||
3,775;-12,56;0,0;-2,197;0,0
|
||||
3,791;-12,56;0,0;-2,197;0,0
|
||||
3,808;-12,56;0,0;-2,197;0,0
|
||||
3,825;-12,56;0,0;-2,197;0,0
|
||||
3,841;-12,56;0,0;-2,197;0,0
|
||||
3,858;-12,56;0,0;-2,197;0,0
|
||||
3,875;-12,56;0,0;-2,197;0,0
|
||||
3,891;-12,56;0,0;-2,197;0,0
|
||||
3,908;-12,56;0,0;-2,197;0,0
|
||||
3,925;-12,56;0,0;-2,197;0,0
|
||||
3,941;-12,56;0,0;-2,197;0,0
|
||||
3,958;-12,56;0,0;-2,197;0,0
|
||||
3,975;-12,56;0,0;-2,197;0,0
|
||||
3,991;-12,56;0,0;-2,197;0,0
|
||||
4,008;-12,56;0,0;-2,197;0,0
|
||||
4,025;-12,56;0,0;-2,197;0,0
|
||||
4,041;0,0;0,0;0,0;0,0
|
|
@ -73,6 +73,9 @@ from porcou_lib import * # Bibliothèque utilisateur du portail coulissant
|
||||
|
||||
def commandes():
|
||||
|
||||
daq(['mot_angle', 'mot_vitesse', 'portail_x', 'portail_vitesse'])
|
||||
reset_t()
|
||||
|
||||
# Init -> Ouverture
|
||||
while fdc_o() ==False :
|
||||
gyr(True)
|
||||
@ -84,12 +87,12 @@ def commandes():
|
||||
|
||||
# Données
|
||||
# daq(['mot_angle', 'mot_vitesse', 'portail_x', 'portail_vitesse'])
|
||||
reset_t()
|
||||
# reset_t()
|
||||
|
||||
# daq(['bp_ext', 'bp_ext_r', 'bp_int', 'bp_int_r', 'fdc_o', 'fdc_o_r', 'fdc_f', 'fdc_f_r', 'mot_o', 'mot_f', 'gyr', 'mot_angle', 'mot_vitesse', 'portail_x', 'portail_vitesse', 'ir_emet', 'ir_recep', 'ir_recep_r'])
|
||||
# daq(['bp_ext', 'bp_ext_r', 'bp_int', 'bp_int_r', 'fdc_o', 'fdc_o_r', 'fdc_f', 'fdc_f_r', 'mot_o', 'mot_f', 'gyr'])
|
||||
|
||||
# plot(['mot_angle', 'mot_vitesse', 'portail_x', 'portail_vitesse'])
|
||||
plot(['mot_angle', 'mot_vitesse', 'portail_x', 'portail_vitesse'])
|
||||
|
||||
# plot([['bp_ext', 'bp_ext_r'], ['bp_int', 'bp_int_r'], ['fdc_o', 'fdc_o_r'], ['fdc_f', 'fdc_f_r'], 'mot_o', 'mot_f', 'gyr', ['mot_angle', 'mot_vitesse', 'portail_x', 'portail_vitesse']])
|
||||
|
||||
|
@ -62,7 +62,7 @@ def commandes():
|
||||
print ("Version sans sécurité : sans réouverture")
|
||||
print ("Mise en place : Fermeture")
|
||||
while fdc_f() ==False :
|
||||
gyrr(True)
|
||||
gyr(True)
|
||||
mot_o(False)
|
||||
mot_f(True)
|
||||
mot_f(False)
|
||||
|
@ -2,9 +2,10 @@ import sys
|
||||
from twin_plot import plot_config_get_dict, plot_config_get, plot_config_get_enable, plot_nb, csv_read, plots_static # Gestion communes des graphiques (Qt, wx)
|
||||
|
||||
from PyQt6 import QtCore, QtGui, QtWidgets # GUI Qt6
|
||||
|
||||
import matplotlib # Grapheur Matplotlib
|
||||
import matplotlib.pyplot as plts
|
||||
matplotlib.use('Qt6Agg')
|
||||
matplotlib.use('Qt5Agg')
|
||||
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg, NavigationToolbar2QT as NavigationToolbar
|
||||
|
||||
###############################################################################
|
||||
@ -194,5 +195,5 @@ if __name__ == "__main__":
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
# w = DynamicPlot()
|
||||
w = MainWindow() # StaticPlot()
|
||||
app.exec_()
|
||||
app.exec()
|
||||
sys.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user