7#include <frc/trajectory/TrapezoidProfile.h>
8#include <units/acceleration.h>
9#include <units/angle.h>
10#include <units/angular_acceleration.h>
11#include <units/angular_velocity.h>
12#include <units/length.h>
13#include <units/time.h>
14#include <units/velocity.h>
31 constexpr units::millisecond_t
robotSlamCone = units::millisecond_t{1500};
34 namespace calbeProtector {
43 namespace blue_alliance {
68 namespace red_alliance {
77 namespace blue_alliance {
123 namespace red_alliance {
139 namespace blue_alliance {
181 namespace slam_grab {
182 namespace cableProtector {
194 namespace red_alliance {
209 namespace slam_grab {
210 namespace cableProtector {
224 namespace blue_alliance {
250 namespace red_alliance {
259 namespace translation {
264 static const auto gp0ToScore = frc::TrapezoidProfile<units::inches>::Constraints{6_fps, 10_fps_sq};
265 static const auto loadingStationPullIn = frc::TrapezoidProfile<units::inches>::Constraints{6.5_fps, 10_fps_sq};
271 static const auto gp3ToScore = frc::TrapezoidProfile<units::inches>::Constraints{4.5_fps, 5_fps_sq};
272 static const auto gp2ToScore = frc::TrapezoidProfile<units::inches>::Constraints{6_fps, 5_fps_sq};
278 static const auto gp0ToScore_3gp = frc::TrapezoidProfile<units::inches>::Constraints{7_fps, 8_fps_sq};
283 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
285 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
287 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
289 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
290 static const auto gp0ToScore = frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
292 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
295 frc::TrapezoidProfile<units::degrees>::Constraints{300_deg_per_s, 300_deg_per_s_sq};
297 frc::TrapezoidProfile<units::degrees>::Constraints{300_deg_per_s, 300_deg_per_s_sq};
299 frc::TrapezoidProfile<units::degrees>::Constraints{300_deg_per_s, 300_deg_per_s_sq};
301 frc::TrapezoidProfile<units::degrees>::Constraints{300_deg_per_s, 300_deg_per_s_sq};
302 static const auto gp3ToScore = frc::TrapezoidProfile<units::degrees>::Constraints{300_deg_per_s, 300_deg_per_s_sq};
303 static const auto gp2ToScore = frc::TrapezoidProfile<units::degrees>::Constraints{300_deg_per_s, 300_deg_per_s_sq};
306 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
308 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
310 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
312 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
314 frc::TrapezoidProfile<units::degrees>::Constraints{360_deg_per_s, 360_deg_per_s_sq};
constexpr frc::Translation3d chargeStationCenter
Definition field_points.h:154
constexpr Node middleRowRight
Definition field_points.h:227
constexpr Node middleRowLeft
Definition field_points.h:219
constexpr auto gp_1
Definition field_points.h:148
constexpr auto gp_3
Definition field_points.h:150
constexpr auto gp_0
Definition field_points.h:147
constexpr auto gp_2
Definition field_points.h:149
constexpr Node middleRowMiddle
Definition field_points.h:188
constexpr Node middleRowLeft
Definition field_points.h:184
constexpr Node middleRowRight
Definition field_points.h:263
constexpr Node topRowMiddle
Definition field_points.h:246
constexpr Node topRowRight
Definition field_points.h:250
constexpr units::inch_t outerEdgeX
Side closest to the game pieces.
Definition field_points.h:140
constexpr auto gridDepth
Distance from alliance station wall to end of grid dividers.
Definition field_points.h:112
constexpr auto gamePiece0
Definition auto.h:231
constexpr auto gamePiece3
Definition auto.h:240
constexpr auto gamePiece3_3d
Definition auto.h:228
constexpr auto gamePiece1_3gp_3d
Definition auto.h:234
constexpr auto gamePiece0_3d
Definition auto.h:225
constexpr auto gamePiece2
Definition auto.h:246
constexpr auto gamePiece1_3gp
Definition auto.h:237
constexpr auto gamePiece2_3d
Definition auto.h:243
static const auto gamePiece2
Definition auto.h:253
static const auto gamePiece3
Definition auto.h:254
static const auto gamePiece1_3gp
Definition auto.h:252
static const auto gamePiece0
Definition auto.h:251
constexpr auto stationStageFudge
Definition auto.h:142
constexpr auto afterDriveOverCharge
Expected position after driving over charge station. Assume robot yaw is 0° and oui oui is on robot l...
Definition auto.h:186
constexpr auto angleToPickup
Angle from after charge station to picking up game piece.
Definition auto.h:184
constexpr auto backAwayFromCableProtectorCone
Definition auto.h:149
constexpr auto chargingStationStage
Definition auto.h:174
constexpr auto backAwayFromLoadingStationCone
Definition auto.h:145
constexpr auto backAwayFromLoadingStationCube
Definition auto.h:159
constexpr auto backAwayFromCableProtectorConeReverse
Definition auto.h:164
constexpr auto approachSecondCube
Definition auto.h:168
constexpr auto backAwayFromLoadingStationConeReverse
Definition auto.h:154
static const auto angleToPickup
Angle from after charge station to picking up game piece.
Definition auto.h:212
static const auto afterDriveOverCharge
Expected position after driving over charge station. Assume robot yaw is 0° and oui oui is on robot l...
Definition auto.h:215
static const auto backAwayFromLoadingStationConeReverse
Definition auto.h:201
static const auto backAwayFromCableProtectorCone
Definition auto.h:197
static const auto backAwayFromLoadingStationCone
Definition auto.h:195
static const auto backAwayFromCableProtectorConeReverse
Definition auto.h:207
static const auto backAwayFromLoadingStationCube
Definition auto.h:199
static const auto chargingStationStage
Definition auto.h:205
static const auto approachSecondCube
Definition auto.h:203
constexpr units::inch_t length
Definition measure_up.h:20
constexpr auto lateralOffset
Definition measure_up.h:78
constexpr auto bumperExtension
Distance from frame to outer edge of bumpers.
Definition measure_up.h:17
static const auto gp3ToScore
Definition auto.h:302
static const auto cableProtectorGridToGp3
Definition auto.h:298
static const auto gp0ToScore
Definition auto.h:290
static const auto loadingStationGridToGp0_3gp
Definition auto.h:309
static const auto cableProtectorSplineOut
Definition auto.h:296
static const auto gp2ToScore
Definition auto.h:303
static const auto stageChargeStationPullIn
Definition auto.h:286
static const auto loadingStationBackOut_3gp
Definition auto.h:305
static const auto loadingStationPullIn
Definition auto.h:291
static const auto loadingStationBackOut
Definition auto.h:282
static const auto loadingStationReverseBackOut
Definition auto.h:284
static const auto loadingStationGridToGp0
Definition auto.h:288
static const auto cableProtectorPullIn
Definition auto.h:300
static const auto gp0ToScore_3gp
Definition auto.h:311
static const auto stageChargeStationPullIn_3gp
Definition auto.h:307
static const auto loadingStationPullIn_3gp
Definition auto.h:313
static const auto cableProtectorBackOut
Definition auto.h:294
static const auto loadingStationBackOut_3gp
Definition auto.h:275
static const auto cableProtectorBackOut2Gp
Definition auto.h:268
static const auto gp0ToScore_3gp
Definition auto.h:278
static const auto cableProtectorPullIn
Definition auto.h:273
static const auto loadingStationReverseBackOut
Definition auto.h:261
static const auto loadingStationPullIn
Definition auto.h:265
static const auto stageChargeStationPullIn
Definition auto.h:262
static const auto gp3ToScore
Definition auto.h:271
static const auto cableProtectorGridToGp3
Definition auto.h:270
static const auto loadingStationPullIn_3gp
Definition auto.h:279
static const auto gp2ToScore
Definition auto.h:272
static const auto loadingStationGridToGp0_3gp
Definition auto.h:277
static const auto loadingStationBackOut
Definition auto.h:260
static const auto gp0ToScore
Definition auto.h:264
static const auto cableProtectorSplineOut
Definition auto.h:269
static const auto loadingStationGridToGp0
Definition auto.h:263
static const auto cableProtectorBackOut
Definition auto.h:267
static const auto stageChargeStationPullIn_3gp
Definition auto.h:276
constexpr auto cableProtectorShoot3d
Definition auto.h:59
constexpr auto loadingStationCube3d
Definition auto.h:44
constexpr auto cableProtectorCube3d
Definition auto.h:51
constexpr auto cableProtectorShoot
Definition auto.h:63
constexpr auto loadingStationCube
Definition auto.h:48
constexpr auto cableProtectorCube
Definition auto.h:55
static const auto cableProtectorCube
Definition auto.h:70
static const auto loadingStationCube
Definition auto.h:69
static const auto cableProtectorShoot
Definition auto.h:71
constexpr auto cableProtectorCone3d
Definition auto.h:94
constexpr auto loadingStationConeReverse3d
Definition auto.h:101
constexpr auto cableProtectorSlamGrab3d
Definition auto.h:78
constexpr auto loadingStationCone3d
Definition auto.h:82
constexpr auto cableProtectorCone
Definition auto.h:98
constexpr auto cableProtectorConeReverse3d
Definition auto.h:112
constexpr auto loadingStationCone
Definition auto.h:86
constexpr auto cableProtectorSlamGrab
Definition auto.h:89
constexpr auto cableProtectorConeReverse
Definition auto.h:118
constexpr auto loadingStationConeReverse
Definition auto.h:107
static const auto loadingStationCone
Definition auto.h:127
static const auto cableProtectorCone
Definition auto.h:129
static const auto cableProtectorConeReverse
Definition auto.h:133
static const auto cableProtectorSlamGrab
Definition auto.h:124
static const auto loadingStationConeReverse
Definition auto.h:131
constexpr units::degree_t robotLeftChargingStationPitch
Definition auto.h:23
constexpr units::degree_t robotHitChargingStationPitch
Definition auto.h:22
constexpr units::degrees_per_second_t robotTippingPitchRate
Definition auto.h:24
constexpr units::degree_t robotClimbPitch
Target pitch to reach when climbing up the charge station.
Definition auto.h:21
constexpr auto backToCharge
Definition auto.h:37
constexpr auto toGamePiece
Time to travel from charge station to game piece on left slam grab.
Definition auto.h:36
constexpr auto afterDriveOver
Definition auto.h:33
constexpr units::second_t robotClimbStation
The amount of time to wait before robot should abort trying to achieve target pitch on charge station...
Definition auto.h:29
constexpr units::millisecond_t robotSlamCone
The max ammount of time the robot is allowed to talk while slamming a cone using the oui oui placer.
Definition auto.h:31
constexpr units::angle::degree_t ReflectAngle(const units::angle::degree_t sourceAngle)
Definition field_points.h:71
constexpr frc::Translation3d ReflectFieldPoint(const frc::Translation3d source)
Reflects the point source over the middle of the field to get equivelent points accross the field.
Definition field_points.h:63
frc::Translation3d m_position
Definition field_points.h:48