blob: f9b5f304de2504d8d040411c731bf1181acbcb19 [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) 2014-2018 FIRST. All Rights Reserved. */
3/* Open Source Software - may be modified and shared by FRC teams. The code */
4/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
6/*----------------------------------------------------------------------------*/
7
8#pragma once
9
10#include <stdint.h>
11
12class TestBench {
13 public:
14 /* Analog input channels */
15 static const uint32_t kCameraGyroChannel = 0;
16 static const uint32_t kFakeCompressorChannel = 1;
17 static const uint32_t kFakeAnalogOutputChannel = 2;
18
19 /* Analog output channels */
20 static const uint32_t kAnalogOutputChannel = 0;
21
22 /* DIO channels */
23 static const uint32_t kTalonEncoderChannelA = 0;
24 static const uint32_t kTalonEncoderChannelB = 1;
25 static const uint32_t kVictorEncoderChannelA = 2;
26 static const uint32_t kVictorEncoderChannelB = 3;
27 static const uint32_t kJaguarEncoderChannelA = 4;
28 static const uint32_t kJaguarEncoderChannelB = 5;
29 static const uint32_t kLoop1OutputChannel = 6;
30 static const uint32_t kLoop1InputChannel = 7;
31 static const uint32_t kLoop2OutputChannel = 8;
32 static const uint32_t kLoop2InputChannel = 9;
33
34 /* PWM channels */
35 static const uint32_t kVictorChannel = 1;
36 static const uint32_t kJaguarChannel = 2;
37 static const uint32_t kCameraPanChannel = 8;
38 static const uint32_t kCameraTiltChannel = 9;
39
40 /* MXP digital channels */
41 static const uint32_t kTalonChannel = 10;
42 static const uint32_t kFakePressureSwitchChannel = 11;
43 static const uint32_t kFakeSolenoid1Channel = 12;
44 static const uint32_t kFakeSolenoid2Channel = 13;
45 static const uint32_t kFakeRelayForward = 18;
46 static const uint32_t kFakeRelayReverse = 19;
47
48 /* Relay channels */
49 static const uint32_t kRelayChannel = 0;
50
51 /* PDP channels */
52 static const uint32_t kJaguarPDPChannel = 6;
53 static const uint32_t kVictorPDPChannel = 8;
54 static const uint32_t kTalonPDPChannel = 10;
55
56 /* PCM channels */
57 static const int32_t kSolenoidChannel1 = 0;
58 static const int32_t kSolenoidChannel2 = 1;
59};