|
@ -31,8 +31,8 @@ def gamepad_axes(axes_data): |
|
|
print(axes_data) |
|
|
print(axes_data) |
|
|
from roberto import serial |
|
|
from roberto import serial |
|
|
x = applyDeadZone( axes_data['0'], 0.15 ) |
|
|
x = applyDeadZone( axes_data['0'], 0.15 ) |
|
|
y = x = applyDeadZone( axes_data['1'], 0.15 ) |
|
|
y = applyDeadZone( axes_data['1'], 0.15 ) |
|
|
r = x = applyDeadZone( axes_data['3'], 0.15 ) |
|
|
r = applyDeadZone( axes_data['3'], 0.15 ) |
|
|
m0 = +y - x - r |
|
|
m0 = +y - x - r |
|
|
m1 = +y + x - r |
|
|
m1 = +y + x - r |
|
|
m2 = -y + x - r |
|
|
m2 = -y + x - r |
|
|