blob: 11d641da398d70ff4810b36ea71e011a5fb1fbb8 [file] [log] [blame]
Austin Schuh00be3a82017-02-05 19:01:40 -08001package frc971.control_loops;
2
3import "frc971/control_loops/control_loops.q";
4
5struct ProfiledJointStatus {
6 // Is the turret zeroed?
7 bool zeroed;
8
9 // The state of the subsystem, if applicable. -1 otherwise.
10 int32_t state;
11
12 // If true, we have aborted.
13 bool estopped;
14
15 // Position of the joint.
16 float position;
17 // Velocity of the joint in units/second.
18 float velocity;
19 // Profiled goal position of the joint.
20 float goal_position;
21 // Profiled goal velocity of the joint in units/second.
22 float goal_velocity;
23 // Unprofiled goal position from absoulte zero of the joint.
24 float unprofiled_goal_position;
25 // Unprofiled goal velocity of the joint in units/second.
26 float unprofiled_goal_velocity;
27
28 // The estimated voltage error.
29 float voltage_error;
30
31 // The calculated velocity with delta x/delta t
32 float calculated_velocity;
33
34 // Components of the control loop output
35 float position_power;
36 float velocity_power;
37 float feedforwards_power;
38
39 // State of the estimator.
40 .frc971.EstimatorState estimator_state;
41};