2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
addresses.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc/I2C.h>
8
10
11namespace address {
12 namespace comp_bot {
13 struct drive {
14 constexpr static argos_lib::CANAddress frontLeftDrive{1, "drive"};
15 constexpr static argos_lib::CANAddress frontLeftTurn{2, "drive"};
16 constexpr static argos_lib::CANAddress frontRightDrive{3, "drive"};
17 constexpr static argos_lib::CANAddress frontRightTurn{4, "drive"};
18 constexpr static argos_lib::CANAddress backRightDrive{5, "drive"};
19 constexpr static argos_lib::CANAddress backRightTurn{6, "drive"};
20 constexpr static argos_lib::CANAddress backLeftDrive{7, "drive"};
21 constexpr static argos_lib::CANAddress backLeftTurn{8, "drive"};
22 };
23 struct lifter {
24 constexpr static argos_lib::CANAddress frontShoulder{9, "rio"};
25 constexpr static argos_lib::CANAddress backShoulder{10, "rio"};
26 constexpr static argos_lib::CANAddress armExtension{11, "rio"};
27 constexpr static argos_lib::CANAddress wrist{12, "rio"};
28 };
29 struct intake {
30 constexpr static argos_lib::CANAddress intakeMotor{13, "rio"};
31 };
32 struct bash_guard {
33 constexpr static argos_lib::CANAddress extension{14, "rio"};
34 };
36 constexpr static argos_lib::CANAddress ouiOuiDriver{15, "rio"}; // @todo assume rio bus?
37 }; // oui_oui_placer
38 struct encoders {
39 constexpr static argos_lib::CANAddress frontLeftEncoder{1, "drive"};
40 constexpr static argos_lib::CANAddress frontRightEncoder{2, "drive"};
41 constexpr static argos_lib::CANAddress backRightEncoder{3, "drive"};
42 constexpr static argos_lib::CANAddress backLeftEncoder{4, "drive"};
43
44 // Lifter encoders
45 constexpr static argos_lib::CANAddress shoulderEncoder{5, "rio"};
46 constexpr static argos_lib::CANAddress armExtenderEncoder{6, "rio"};
47 constexpr static argos_lib::CANAddress wristEncoder{7, "rio"};
48 };
49 struct controllers {
50 constexpr static const char driver = 0;
51 constexpr static const char secondary = 1;
52 constexpr static const char buttonBox = 2;
53 };
54 struct solenoids {};
55 struct sensors {
56 constexpr static argos_lib::CANAddress pigeonIMU{1, "drive"};
57 constexpr static const char tofCubeIntake = 1;
58 constexpr static const char tofConeIntakeLeft = 2;
59 constexpr static const char tofConeIntakeRight = 3;
60 };
61 struct led {
62 constexpr static argos_lib::CANAddress CANdle{1, "drive"};
63 };
64 } // namespace comp_bot
77
78} // namespace address
Definition addresses.h:11
Definition addresses.h:32
static constexpr argos_lib::CANAddress extension
Definition addresses.h:33
Definition addresses.h:49
static constexpr const char secondary
Definition addresses.h:51
static constexpr const char buttonBox
Definition addresses.h:52
static constexpr const char driver
Definition addresses.h:50
Definition addresses.h:13
static constexpr argos_lib::CANAddress frontLeftDrive
Definition addresses.h:14
static constexpr argos_lib::CANAddress backLeftDrive
Definition addresses.h:20
static constexpr argos_lib::CANAddress frontLeftTurn
Definition addresses.h:15
static constexpr argos_lib::CANAddress backRightTurn
Definition addresses.h:19
static constexpr argos_lib::CANAddress frontRightTurn
Definition addresses.h:17
static constexpr argos_lib::CANAddress backRightDrive
Definition addresses.h:18
static constexpr argos_lib::CANAddress backLeftTurn
Definition addresses.h:21
static constexpr argos_lib::CANAddress frontRightDrive
Definition addresses.h:16
Definition addresses.h:38
static constexpr argos_lib::CANAddress frontRightEncoder
Definition addresses.h:40
static constexpr argos_lib::CANAddress backRightEncoder
Definition addresses.h:41
static constexpr argos_lib::CANAddress wristEncoder
Definition addresses.h:47
static constexpr argos_lib::CANAddress armExtenderEncoder
Definition addresses.h:46
static constexpr argos_lib::CANAddress frontLeftEncoder
Definition addresses.h:39
static constexpr argos_lib::CANAddress backLeftEncoder
Definition addresses.h:42
static constexpr argos_lib::CANAddress shoulderEncoder
Definition addresses.h:45
Definition addresses.h:29
static constexpr argos_lib::CANAddress intakeMotor
Definition addresses.h:30
Definition addresses.h:61
static constexpr argos_lib::CANAddress CANdle
Definition addresses.h:62
Definition addresses.h:23
static constexpr argos_lib::CANAddress armExtension
Definition addresses.h:26
static constexpr argos_lib::CANAddress wrist
Definition addresses.h:27
static constexpr argos_lib::CANAddress backShoulder
Definition addresses.h:25
static constexpr argos_lib::CANAddress frontShoulder
Definition addresses.h:24
Definition addresses.h:35
static constexpr argos_lib::CANAddress ouiOuiDriver
Definition addresses.h:36
Definition addresses.h:55
static constexpr const char tofCubeIntake
Definition addresses.h:57
static constexpr argos_lib::CANAddress pigeonIMU
Definition addresses.h:56
static constexpr const char tofConeIntakeRight
Definition addresses.h:59
static constexpr const char tofConeIntakeLeft
Definition addresses.h:58
Definition addresses.h:54
Definition config_types.h:25