2022-Robot
Robot code for 2022 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 shooterRange {
17 [[maybe_unused]] constexpr std::array shooterSpeed{InterpMapPoint{10.0_in, 2550.0_rpm},
18 InterpMapPoint{21.5_in, 2500.0_rpm},
19 InterpMapPoint{60.0_in, 2625.0_rpm},
20 InterpMapPoint{120.0_in, 2750.0_rpm},
21 InterpMapPoint{180.0_in, 3150.0_rpm},
22 InterpMapPoint{240.0_in, 3425.0_rpm},
23 InterpMapPoint{300.0_in, 3900.0_rpm},
24 InterpMapPoint{360.0_in, 4250.0_rpm}};
25 [[maybe_unused]] constexpr std::array hoodAngle{InterpMapPoint{10.0_in, 6.5_deg},
26 InterpMapPoint{21.5_in, 6.5_deg},
27 InterpMapPoint{60.0_in, 13.0_deg},
28 InterpMapPoint{120.0_in, 20.0_deg},
29 InterpMapPoint{180.0_in, 29.0_deg},
30 InterpMapPoint{240.0_in, 38.0_deg},
31 InterpMapPoint{300.0_in, 43.0_deg},
32 InterpMapPoint{360.0_in, 44.0_deg}};
33 [[maybe_unused]] constexpr std::array lateralSpeed{InterpMapPoint{10.0_in, 2.0_fps},
34 InterpMapPoint{21.5_in, 2.6_fps},
35 InterpMapPoint{60.0_in, 5.06_fps},
36 InterpMapPoint{120.0_in, 7.8_fps},
37 InterpMapPoint{180.0_in, 11.66_fps},
38 InterpMapPoint{240.0_in, 13.85_fps},
39 InterpMapPoint{300.0_in, 14.41_fps},
40 InterpMapPoint{360.0_in, 15.9_fps}};
41} // namespace shooterRange
42namespace controllerMap {
44
45 [[maybe_unused]] constexpr std::array driveSpeed{InterpMapPoint{-1.0, -0.8},
46 // InterpMapPoint{-0.75, -0.4},
47 InterpMapPoint{-0.15, 0.0},
48 InterpMapPoint{0.15, 0.0},
49 // InterpMapPoint{0.75, 0.4},
50 InterpMapPoint{1.0, 0.8}};
51 [[maybe_unused]] constexpr std::array driveRotSpeed{
52 InterpMapPoint{-1.0, -1.0}, InterpMapPoint{-0.15, 0.0}, InterpMapPoint{0.15, 0.0}, InterpMapPoint{1.0, 1.0}};
53
54 [[maybe_unused]] constexpr std::array hookSpeed{
55 InterpMapPoint{-1.0, -0.8}, InterpMapPoint{-0.2, 0.0}, InterpMapPoint{0.2, 0.0}, InterpMapPoint{1.0, 0.8}};
56 [[maybe_unused]] constexpr std::array armSpeed{
57 InterpMapPoint{-1.0, -0.6}, InterpMapPoint{-0.2, 0.0}, InterpMapPoint{0.2, 0.0}, InterpMapPoint{1.0, 0.6}};
58
59 [[maybe_unused]] constexpr std::array turretSpeed{
60 InterpMapPoint{-1.0, -0.85}, InterpMapPoint{-0.15, 0.0}, InterpMapPoint{0.15, 0.0}, InterpMapPoint{1.0, 0.85}};
61 [[maybe_unused]] constexpr std::array hoodSpeed{
62 InterpMapPoint{-1.0, -0.4}, InterpMapPoint{-0.25, 0.0}, InterpMapPoint{0.25, 0.0}, InterpMapPoint{1.0, 0.4}};
63} // namespace controllerMap
Definition: interpolation_maps.h:42
constexpr std::array driveRotSpeed
Definition: interpolation_maps.h:51
constexpr std::array hoodSpeed
Definition: interpolation_maps.h:61
constexpr std::array hookSpeed
Definition: interpolation_maps.h:54
constexpr std::array armSpeed
Definition: interpolation_maps.h:56
constexpr std::array turretSpeed
Definition: interpolation_maps.h:59
constexpr std::array driveSpeed
Definition: interpolation_maps.h:45
Definition: interpolation_maps.h:15
constexpr std::array shooterSpeed
Definition: interpolation_maps.h:17
constexpr std::array hoodAngle
Definition: interpolation_maps.h:25
constexpr std::array lateralSpeed
Definition: interpolation_maps.h:33
Point that helps generate an interpolation map.
Definition: interpolation.h:18