forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXBot.java
More file actions
25 lines (17 loc) · 1.11 KB
/
XBot.java
File metadata and controls
25 lines (17 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.firstinspires.ftc.teamcode;
public class XBot {
static final double EXTENDO_MAX = 0.5; // Extendo in fully extended position
static final double ELBOW_STRAIGHT = 0.1; // Elbow up front - but straight
static final double CLAW_CLOSE = 0.45; // Close position, Specimen in hand
static final double CLAW_OPEN = 0.78; // Position when we pick Specimen or open claw to drop
// Constants for servo position control
static final double SERVO_INCREMENT = 0.03; // Increment size for position changes
// eg: Motor Encoder 117 = 384.5, 223 = 751.8, 312 = 537.7, 435 = 1425.1
static final double COUNTS_PER_MOTOR_REV = 447.5;// 384.5; // 1425.1;
static final double PULLEY_DIAMETER_INCHES = 1.5 ; // For figuring circumference
static final double COUNTS_PER_INCH = 81.6;//(COUNTS_PER_MOTOR_REV) / (PULLEY_DIAMETER_INCHES * Math.PI); //81.6 ticks per inch
static final double VIPER_DRIVE_SPEED = 1.0;
//948 -- 12 inch
//All values in Inches
static final double VIPER_DROP_SPECIMEN = 18.5; // Viper zero position 2064
}