2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
control_loops.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include "units/angular_acceleration.h"
8#include "units/angular_velocity.h"
9
10namespace controlLoop {
11 namespace comp_bot {
12 namespace drive {
13 struct rotate {
14 constexpr static double kP = 1.4;
15 constexpr static double kI = 0.0005;
16 constexpr static double kD = 0.0;
17 constexpr static double kF = 0.0;
18 constexpr static double iZone = 500.0;
19 constexpr static double allowableError = 0.0;
20 }; // namespace rotate
21 struct drive {
22 constexpr static double kP = 0.11;
23 constexpr static double kI = 0.0;
24 constexpr static double kD = 0.0;
25 constexpr static double kF = 0.05;
26 constexpr static double iZone = 500.0;
27 constexpr static double allowableError = 0.0;
28 }; // namespace drive
30 constexpr static double kP = 5.5;
31 constexpr static double kI = 0.0;
32 constexpr static double kD = 0.0;
33 }; // namespace linear_follower
35 constexpr static double kP = 5.5;
36 constexpr static double kI = 0.0;
37 constexpr static double kD = 0.0;
38 constexpr static auto angularVelocity = units::degrees_per_second_t{360};
39 constexpr static auto angularAcceleration = units::degrees_per_second_squared_t{360};
40 }; // namespace rotational_follower
41 } // namespace drive
42 namespace lifter {
43 struct armExtension {
44 constexpr static double kP = 0.1;
45 constexpr static double kI = 0.0002;
46 constexpr static double kD = 0;
47 constexpr static double kF = 0.08;
48 constexpr static double iZone = 300;
49 constexpr static double allowableError = 0;
50 };
51 struct shoulder {
52 constexpr static double kP = 0.07;
53 constexpr static double kI = 0.0004;
54 constexpr static double kD = 0.002;
55 constexpr static double kF = 0.0318;
56 constexpr static double iZone = 1500;
57 constexpr static double allowableError = 0;
58 };
59 struct wrist {
60 constexpr static double kP = 0.07;
61 constexpr static double kI = 0;
62 constexpr static double kD = 2.0;
63 constexpr static double kF = 0;
64 constexpr static double iZone = 0;
65 constexpr static double allowableError = 0;
66 };
67 } // namespace lifter
68 namespace bash_guard {
69 struct extension {
70 constexpr static double kP = 0.1;
71 constexpr static double kI = 0;
72 constexpr static double kD = 0;
73 constexpr static double kF = 0.07;
74 constexpr static double iZone = 0;
75 constexpr static double allowableError = 0;
76 };
77 } // namespace bash_guard
78 namespace oui_oui_placer {
79 constexpr static double kP = 0;
80 constexpr static double kI = 0;
81 constexpr static double kD = 0;
82 constexpr static double kF = 0;
83 constexpr static double iZone = 0;
84 constexpr static double allowableError = 0;
85 } // namespace oui_oui_placer
86 } // namespace comp_bot
87 namespace practice_bot {
94 namespace lifter {
98 } // namespace lifter
99 namespace bash_guard {
101 } // namespace bash_guard
102 } // namespace practice_bot
103} // namespace controlLoop
static constexpr double kD
Definition control_loops.h:81
static constexpr double kP
Definition control_loops.h:79
static constexpr double kF
Definition control_loops.h:82
static constexpr double iZone
Definition control_loops.h:83
static constexpr double allowableError
Definition control_loops.h:84
static constexpr double kI
Definition control_loops.h:80
Definition control_loops.h:10
static constexpr double kI
Definition control_loops.h:71
static constexpr double kD
Definition control_loops.h:72
static constexpr double allowableError
Definition control_loops.h:75
static constexpr double kP
Definition control_loops.h:70
static constexpr double iZone
Definition control_loops.h:74
static constexpr double kF
Definition control_loops.h:73
Definition control_loops.h:21
static constexpr double kF
Definition control_loops.h:25
static constexpr double iZone
Definition control_loops.h:26
static constexpr double kD
Definition control_loops.h:24
static constexpr double kP
Definition control_loops.h:22
static constexpr double allowableError
Definition control_loops.h:27
static constexpr double kI
Definition control_loops.h:23
static constexpr double kP
Definition control_loops.h:30
static constexpr double kD
Definition control_loops.h:32
static constexpr double kI
Definition control_loops.h:31
Definition control_loops.h:13
static constexpr double iZone
Definition control_loops.h:18
static constexpr double kP
Definition control_loops.h:14
static constexpr double allowableError
Definition control_loops.h:19
static constexpr double kF
Definition control_loops.h:17
static constexpr double kI
Definition control_loops.h:15
static constexpr double kD
Definition control_loops.h:16
static constexpr auto angularAcceleration
Definition control_loops.h:39
static constexpr double kP
Definition control_loops.h:35
static constexpr auto angularVelocity
Definition control_loops.h:38
static constexpr double kD
Definition control_loops.h:37
static constexpr double kI
Definition control_loops.h:36
Definition control_loops.h:43
static constexpr double kP
Definition control_loops.h:44
static constexpr double kD
Definition control_loops.h:46
static constexpr double iZone
Definition control_loops.h:48
static constexpr double allowableError
Definition control_loops.h:49
static constexpr double kI
Definition control_loops.h:45
static constexpr double kF
Definition control_loops.h:47
Definition control_loops.h:51
static constexpr double kI
Definition control_loops.h:53
static constexpr double kF
Definition control_loops.h:55
static constexpr double kD
Definition control_loops.h:54
static constexpr double allowableError
Definition control_loops.h:57
static constexpr double kP
Definition control_loops.h:52
static constexpr double iZone
Definition control_loops.h:56
Definition control_loops.h:59
static constexpr double kF
Definition control_loops.h:63
static constexpr double allowableError
Definition control_loops.h:65
static constexpr double iZone
Definition control_loops.h:64
static constexpr double kP
Definition control_loops.h:60
static constexpr double kI
Definition control_loops.h:61
static constexpr double kD
Definition control_loops.h:62