2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
Constants.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc/PneumaticsModuleType.h>
8#include <units/length.h>
9#include <units/time.h>
10#include <units/velocity.h>
11
12#include <string>
13
14#include "constants/addresses.h"
18#include "constants/motors.h"
19#include "networktables/NetworkTable.h"
20#include "networktables/NetworkTableInstance.h"
21
22namespace speeds {
23 namespace drive {
24 constexpr double aimBotMaxBias = 0.6;
25 constexpr double aimBotThresh = 0.1;
26 constexpr units::velocity::feet_per_second_t maxAngular = 12_fps;
27 } // namespace drive
28 namespace armKinematicSpeeds {
29 constexpr auto effectorVelocity = 60_ips;
30 constexpr auto effectorAcceleration = 45_ips2;
31 constexpr auto effectorFastVelocity = 80_ips;
32 constexpr auto effectorFastAcceleration = 60_ips2;
33 } // namespace armKinematicSpeeds
34} // namespace speeds
35
36namespace indexes {
37 namespace swerveModules {
38 constexpr char frontLeftIndex = 0;
39 constexpr char frontRightIndex = 1;
40 constexpr char backRightIndex = 2;
41 constexpr char backLeftIndex = 3;
42 } // namespace swerveModules
43} // namespace indexes
44
45namespace paths {
46 const std::string swerveHomesPath = "homes/swerveHomes";
47 const std::string wristHomesPath = "homes/wristHomes";
48 const std::string shoulderHome = "homes/shoulderHome";
49 const std::string extensionHomePath = "homes/extensionHome";
50} // namespace paths
51
52namespace networkTables {
53 namespace swerveHomes {
54 const std::string tableKey = "Argos";
55 namespace keys {
56 const std::string flHome = "swerveHomes/flHome";
57 const std::string frHome = "swerveHomes/frHome";
58 const std::string brHome = "swerveHomes/brHome";
59 const std::string blHome = "swerveHomes/blHome";
60
61 const std::string flHomeFullPath = "swerveHomes/flHome";
62 const std::string frHomeFullPath = "swerveHomes/frHome";
63 const std::string brHomeFullPath = "swerveHomes/brHome";
64 const std::string blHomeFullPath = "swerveHomes/blHome";
65 } // namespace keys
66 } // namespace swerveHomes
67} // namespace networkTables
68
69namespace leds {
70 // Length of request animation in seconds
71 constexpr units::time::second_t requestLen = 2_s;
72} // namespace leds
73namespace camera {
74 constexpr char reflectivePipeline = 1;
75 constexpr char aprilTagPipeline = 0;
76 constexpr int horizontalPixelResolution = 320;
77 constexpr int verticalPixelResolution = 240;
78 constexpr auto horizontalAngleResolution = 63.3_deg;
80 constexpr auto verticalAngleResolution = 49.7_deg;
81} // namespace camera
82
85
87namespace warning {
89 namespace nuclear {
91 namespace option {
92 constexpr bool wristEnabled = true;
93 } // namespace option
94 } // namespace nuclear
95} // namespace warning
ApproachDirection
Designate the threshold approach direction.
Definition Constants.h:84
Definition Constants.h:73
constexpr int verticalPixelResolution
Definition Constants.h:77
constexpr int horizontalPixelResolution
Definition Constants.h:76
constexpr char aprilTagPipeline
Definition Constants.h:75
constexpr auto halfhorizontalAngleResolution
Definition Constants.h:79
constexpr char reflectivePipeline
Definition Constants.h:74
constexpr auto horizontalAngleResolution
Definition Constants.h:78
constexpr auto verticalAngleResolution
Definition Constants.h:80
constexpr char backRightIndex
Definition Constants.h:40
constexpr char frontLeftIndex
Definition Constants.h:38
constexpr char frontRightIndex
Definition Constants.h:39
constexpr char backLeftIndex
Definition Constants.h:41
Definition Constants.h:36
Definition Constants.h:69
constexpr units::time::second_t requestLen
Definition Constants.h:71
const std::string flHome
Definition Constants.h:56
const std::string flHomeFullPath
Definition Constants.h:61
const std::string blHome
Definition Constants.h:59
const std::string blHomeFullPath
Definition Constants.h:64
const std::string brHome
Definition Constants.h:58
const std::string brHomeFullPath
Definition Constants.h:63
const std::string frHome
Definition Constants.h:57
const std::string frHomeFullPath
Definition Constants.h:62
const std::string tableKey
Definition Constants.h:54
Definition Constants.h:52
Definition Constants.h:45
const std::string swerveHomesPath
Definition Constants.h:46
const std::string wristHomesPath
Definition Constants.h:47
const std::string shoulderHome
Definition Constants.h:48
const std::string extensionHomePath
Definition Constants.h:49
constexpr auto effectorFastVelocity
Definition Constants.h:31
constexpr auto effectorFastAcceleration
Definition Constants.h:32
constexpr auto effectorAcceleration
Definition Constants.h:30
constexpr auto effectorVelocity
Definition Constants.h:29
constexpr double aimBotThresh
Definition Constants.h:25
constexpr double aimBotMaxBias
Definition Constants.h:24
constexpr units::velocity::feet_per_second_t maxAngular
Definition Constants.h:26
Definition Constants.h:22
constexpr bool wristEnabled
Definition Constants.h:92
This is a bad idea...
Definition Constants.h:87