Skip to content

Commit

Permalink
Fix incorrect naming of camera pan
Browse files Browse the repository at this point in the history
  • Loading branch information
Finchiedev committed Dec 22, 2018
1 parent 6899a48 commit 337d658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions App/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
connection.write('040');
}

function cameraTilt(dynamixel, button, gamepad, step, speed) {
function cameraPan(dynamixel, button, gamepad, step, speed) {
var movementSpeed;

// if (gamepad.buttons[leftCameraButton].pressed || gamepad.buttons[rightCameraButton].pressed) {
Expand Down Expand Up @@ -103,7 +103,7 @@
var wheel3 = axisValue(3, 3, gamepad)
var wheel2 = axisValue(2, 1, gamepad)
var wheel4 = axisValue(2, 1, gamepad)
var cameraTiltValue = cameraTilt(7, leftCameraButton, gamepad, 300, jointSpeed)
var cameraPanValue = cameraPan(7, leftCameraButton, gamepad, 300, jointSpeed)

clientSocket.write('02' + wheel1);
await sleep(interval);
Expand All @@ -113,7 +113,7 @@
await sleep(interval);
clientSocket.write('03' + wheel4);
await sleep(interval)
clientSocket.write(cameraTiltValue);
clientSocket.write(cameraPanValue);
await sleep(interval)
// clientSocket.write(rightCamera);
// await sleep(interval)
Expand Down

0 comments on commit 337d658

Please sign in to comment.