summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-12-12 20:14:08 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-12-12 20:14:08 -0500
commit29fb8dd18f29e297a61b1ea7453f4cc857d14af0 (patch)
tree49dc71cf2dfab8e08a3afa0a8e3338ad46b10fa6 /config.h
initial commit
Diffstat (limited to 'config.h')
-rw-r--r--config.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..6f74b58
--- /dev/null
+++ b/config.h
@@ -0,0 +1,41 @@
+#ifndef CONFIG_H_
+#define CONFIG_H_
+
+// Digi IO configuration
+static vexDigiCfg dConfig[kVexDigital_Num] = {
+ { kVexDigital_1, kVexSensorQuadEncoder, kVexConfigQuadEnc1, kVexQuadEncoder_1 },
+ { kVexDigital_2, kVexSensorQuadEncoder, kVexConfigQuadEnc2, kVexQuadEncoder_1 },
+ { kVexDigital_3, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_4, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_5, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_6, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_7, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_8, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_9, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_10, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_11, kVexSensorDigitalInput, kVexConfigInput, 0 },
+ { kVexDigital_12, kVexSensorDigitalInput, kVexConfigInput, 0 }
+};
+
+#define mDriveLeft kVexMotor_5
+#define mDriveRight kVexMotor_6
+#define mLiftLowRight kVexMotor_7
+#define mLiftHighRight kVexMotor_8
+#define mLiftLowLeft kVexMotor_3
+#define mLiftHighLeft kVexMotor_4
+#define mClaw kVexMotor_1
+
+#define iLiftLowLeft kImeChannel_1
+#define iLiftLowRight kImeChannel_2
+
+static vexMotorCfg mConfig[kVexMotorNum] = {
+ { mDriveLeft, kVexMotorUndefined, kVexMotorNormal, kVexSensorNone, 0 },
+ { mDriveRight, kVexMotorUndefined, kVexMotorNormal, kVexSensorNone, 0 },
+ { mLiftHighLeft, kVexMotor393S, kVexMotorNormal, kVexSensorNone, 0 },
+ { mLiftHighRight, kVexMotor393S, kVexMotorNormal, kVexSensorNone, 0 },
+ { mLiftLowLeft, kVexMotor393S, kVexMotorNormal, kVexSensorIME, iLiftLowLeft },
+ { mLiftLowRight, kVexMotor393S, kVexMotorNormal, kVexSensorIME, iLiftLowRight },
+ { mClaw, kVexMotorUndefined, kVexMotorNormal, kVexSensorNone, 0 },
+};
+
+#endif // CONFIG_H_