Browse Source

fix copy and paste error

split-pipe
Hendrik Langer 4 years ago
parent
commit
e77321930b
  1. 4
      raspberry/roberto/views/websocket/routes.py

4
raspberry/roberto/views/websocket/routes.py

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

Loading…
Cancel
Save