Cleaned up some leftover testing code
This commit is contained in:
11
script.js
11
script.js
@ -285,15 +285,12 @@ function drawRobot(ctx, robot) {
|
|||||||
modules.forEach(module => drawModule(ctx, module));
|
modules.forEach(module => drawModule(ctx, module));
|
||||||
}
|
}
|
||||||
|
|
||||||
let robot = new SwerveDrive(PresetConfigs.eightWheel(200));
|
|
||||||
let xSpeed = -100;
|
|
||||||
let xDir = 1;
|
|
||||||
|
|
||||||
let ySpeed = -100;
|
|
||||||
let yDir = 0.8;
|
|
||||||
|
|
||||||
|
// Initialize Variables
|
||||||
|
const robot = new SwerveDrive(PresetConfigs.eightWheel(200));
|
||||||
|
let xSpeed = 0;
|
||||||
|
let ySpeed = 0;
|
||||||
let turnSpeed = -1;
|
let turnSpeed = -1;
|
||||||
let turnDir = 0.01;
|
|
||||||
let robotRotation = 0; // Track cumulative robot rotation for grid display
|
let robotRotation = 0; // Track cumulative robot rotation for grid display
|
||||||
|
|
||||||
let gridSquareSize = 25;
|
let gridSquareSize = 25;
|
||||||
|
|||||||
Reference in New Issue
Block a user