ev3.getOutputSequence(speeds.a,speeds.b,speeds.c,speeds.d);
ev3.sp.write(output);
}
setInterval(setSpeed, 100)
xbox.on('left:move', function(position){
var x = -(position.x / maxAngle)*-maxSpeed
var y = (position.y / maxAngle)*-maxSpeed
var left = y-x
var right = y+x
speeds.b = left
speeds.a = right
})
xbox.on('a:press', function(){
speeds.d = 100
})
xbox.on('a:release', function(){
speeds.d = 0
})
});
});