We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 127d505 commit c823995Copy full SHA for c823995
1 file changed
scripts/commande_PS4.py
@@ -84,18 +84,25 @@ def on_R1_press(self): #arret d'urgence
84
def on_R1_release(self):
85
set_vitesse_m_ms(0)
86
87
+ def on_L3_up(self,value):
88
+ pass
89
+ def on_L3_down(self,value):
90
91
+
92
93
def on_L3_right(self,value):
- print("x_r :", value, "degré : ",map_range(value,-32767, 32767, 60, 120))
94
+ # print("x_r :", value, "degré : ",map_range(value,-32767, 32767, 60, 120))
95
dir = map_range(value, 0, 32767, 0, angle_degre_max)
96
set_direction_degre(dir)
97
98
def on_L3_left(self,value):
99
+ print("x_r :", value, "degré : ",map_range(value,-32767, 0, -angle_degre_max, 0 ))
100
dir = map_range(value,-32767, 0, -angle_degre_max, 0 )
- print("x_l :", value)
101
102
103
104
def on_L2_press(self, value):
105
+ print("x_r :", value, "degré : ",map_range(value,-32767, 32767, 60, 120))
106
vit = map_range(value,-32252,32767,0,vitesse_min_m_s_soft*1000)
107
if (vit > 0):
108
0 commit comments