blob: 891005132ebacd087f0a7a227e634ef60919e068 [file] [log] [blame]
James Kuszmauld67f6d22023-02-05 17:37:25 -08001include "frc971/vision/calibration.fbs";
Yash Chainani2ac8cb62023-01-14 16:36:36 -08002include "frc971/vision/target_map.fbs";
James Kuszmaul630ab1d2024-01-09 16:38:57 -08003include "frc971/control_loops/profiled_subsystem.fbs";
4include "frc971/zeroing/constants.fbs";
James Kuszmaul667b0592023-02-25 16:32:59 -08005include "y2023/localizer/scoring_map.fbs";
James Kuszmauld67f6d22023-02-05 17:37:25 -08006
7namespace y2023;
8
9table CameraConfiguration {
10 calibration:frc971.vision.calibration.CameraCalibration (id: 0);
11}
12
James Kuszmaul202e4382023-03-05 14:56:55 -080013// Data point for a single time of flight sensor reading. Used in a linear
14// interpolation table.
15table TimeOfFlightDatum {
16 // Time-of-flight sensor reading for the datum.
17 tof_reading:double (id: 0);
18 // Where the game piece is laterally in the robot frame. 0 = centered;
19 // positive = to the left of the robot.
20 // In meters.
21 lateral_position:double (id: 1);
22}
23
24table TimeOfFlight {
25 interpolation_table:[TimeOfFlightDatum] (id: 0);
26}
27
28table RobotConstants {
29 // Table of time-of-flight reading positions. Until we bother using one
30 // of our interpolation classes, should just contain two values.
31 tof:TimeOfFlight (id: 0);
James Kuszmaul630ab1d2024-01-09 16:38:57 -080032 wrist_zero:frc971.zeroing.AbsoluteEncoderZeroingConstants (id: 1);
James Kuszmaul202e4382023-03-05 14:56:55 -080033}
34
James Kuszmaul4fe845a2023-03-26 12:57:30 -070035// Set of april tag targets, by april tag ID, to ignore when on a
36// given alliance.
37table IgnoreTargets {
38 red:[uint64] (id: 0);
39 blue:[uint64] (id: 1);
40}
41
James Kuszmauld67f6d22023-02-05 17:37:25 -080042table Constants {
43 cameras:[CameraConfiguration] (id: 0);
Yash Chainani2ac8cb62023-01-14 16:36:36 -080044 target_map:frc971.vision.TargetMap (id: 1);
James Kuszmaul667b0592023-02-25 16:32:59 -080045 scoring_map:localizer.ScoringMap (id: 2);
James Kuszmaul202e4382023-03-05 14:56:55 -080046 robot:RobotConstants (id: 3);
James Kuszmaul4fe845a2023-03-26 12:57:30 -070047 ignore_targets:IgnoreTargets (id: 4);
James Kuszmaul630ab1d2024-01-09 16:38:57 -080048 wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemCommonParams (id: 5);
James Kuszmauld67f6d22023-02-05 17:37:25 -080049}
50
51root_type Constants;