2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
interpolation_maps.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <units/angle.h>
8#include <units/angular_velocity.h>
9#include <units/length.h>
10
11#include <array>
12
14
15namespace controllerMap {
17
18 [[maybe_unused]] constexpr std::array driveSpeed{InterpMapPoint{-1.0, -1.0},
19 // InterpMapPoint{-0.75, -0.4},
20 InterpMapPoint{-0.15, 0.0},
21 InterpMapPoint{0.15, 0.0},
22 // InterpMapPoint{0.75, 0.4},
23 InterpMapPoint{1.0, 1.0}};
24 [[maybe_unused]] constexpr std::array driveRotSpeed{
25 InterpMapPoint{-1.0, -1.0}, InterpMapPoint{-0.15, 0.0}, InterpMapPoint{0.15, 0.0}, InterpMapPoint{1.0, 1.0}};
26 [[maybe_unused]] constexpr std::array elevatorSpeed{
27 InterpMapPoint{-1.0, -0.5}, InterpMapPoint{-0.15, 0.0}, InterpMapPoint{0.15, 0.0}, InterpMapPoint{1.0, 0.5}};
28 [[maybe_unused]] constexpr std::array elevatorRotateSpeed{
29 InterpMapPoint{-1.0, -0.2}, InterpMapPoint{-0.15, 0.0}, InterpMapPoint{0.15, 0.0}, InterpMapPoint{1.0, 0.2}};
30 [[maybe_unused]] constexpr std::array climberSpeed{
31 InterpMapPoint{-1.0, -0.2}, InterpMapPoint{-0.15, 0.0}, InterpMapPoint{0.15, 0.0}, InterpMapPoint{1.0, 0.2}};
32} // namespace controllerMap
33
34namespace shooterRange {
36
37 [[maybe_unused]] constexpr std::array shooterSpeed{InterpMapPoint{36.0_in, 5300_rpm},
38 InterpMapPoint{60.0_in, 5300_rpm},
39 InterpMapPoint{84.0_in, 5300_rpm},
40 InterpMapPoint{120.0_in, 5300_rpm},
41 InterpMapPoint{180.0_in, 5300_rpm},
42 InterpMapPoint{228_in, 5300_rpm}};
43
44 [[maybe_unused]] constexpr std::array shooterAngle{InterpMapPoint{36.0_in, 60.0_deg},
45 InterpMapPoint{69.0_in, 48.0_deg},
46 InterpMapPoint{88.0_in, 43.0_deg},
47 InterpMapPoint{123.0_in, 33.0_deg},
48 InterpMapPoint{150.0_in, 29.4_deg},
49 InterpMapPoint{174.0_in, 26.2_deg},
50 InterpMapPoint{228_in, 25.0_deg}};
51
52 [[maybe_unused]] constexpr std::array feederAngle{InterpMapPoint{10.0_in, 80.0_deg},
53 InterpMapPoint{50.0_in, 75.0_deg},
54 InterpMapPoint{100.0_in, 65.0_deg},
55 InterpMapPoint{150.0_in, 60.0_deg},
56 InterpMapPoint{200.0_in, 55.0_deg},
57 InterpMapPoint{250.0_in, 47.5_deg},
58 InterpMapPoint{300.0_in, 40.0_deg},
59 InterpMapPoint{350.0_in, 37.5_deg}};
60} // namespace shooterRange
Definition interpolation_maps.h:15
constexpr std::array driveRotSpeed
Definition interpolation_maps.h:24
constexpr std::array elevatorRotateSpeed
Definition interpolation_maps.h:28
constexpr std::array elevatorSpeed
Definition interpolation_maps.h:26
constexpr std::array climberSpeed
Definition interpolation_maps.h:30
constexpr std::array driveSpeed
Definition interpolation_maps.h:18
Definition interpolation_maps.h:34
constexpr std::array shooterAngle
Definition interpolation_maps.h:44
constexpr std::array shooterSpeed
Definition interpolation_maps.h:37
constexpr std::array feederAngle
Definition interpolation_maps.h:52
Point that helps generate an interpolation map.
Definition interpolation.h:18