Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (posX < 0.5 && yaw < pi/2 && !bumperRight && !bumperLeft && !bumperCenter) {
- angular = 0.0;
- linear = 0.2;
- } else if (posX > 0.5 && yaw > pi/2 && !bumperRight && !bumperLeft && !bumperCenter) {
- angular = 0.0;
- linear = 0.2;
- } else {
- angular = 0.0;
- linear = 0.0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement