Skip to content

Commit

Permalink
Updates UNO sketch to fix turning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dankraus committed Sep 21, 2016
1 parent 7a86257 commit 6eaf3d5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions padawan360_body/padawan360_body_uno/padawan360_body_uno.ino
Expand Up @@ -462,15 +462,7 @@ void loop(){
}
}

turnThrottle = map(Xbox.getAnalogHat(RightHatX, 0), -32768, 32767, 0, 255);
if(turnThrottle <= 200 && turnThrottle >= 54)
turnThrottle = map(turnThrottle, 54, 200, -(TURNSPEED/3), (TURNSPEED/3));
else if(turnThrottle > 200)
turnThrottle = map(turnThrottle, 201, 255, TURNSPEED/3, TURNSPEED);
else if(turnThrottle < 54)
turnThrottle = map(turnThrottle, 0, 53, -TURNSPEED, -(TURNSPEED/3));


turnThrottle = map(Xbox.getAnalogHat(RightHatX, 0), -32768, 32767, -TURNSPEED, TURNSPEED);

// DRIVE!
// right stick (drive)
Expand Down

0 comments on commit 6eaf3d5

Please sign in to comment.