James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 1 | include "frc971/vision/calibration.fbs"; |
Yash Chainani | 2ac8cb6 | 2023-01-14 16:36:36 -0800 | [diff] [blame] | 2 | include "frc971/vision/target_map.fbs"; |
James Kuszmaul | 630ab1d | 2024-01-09 16:38:57 -0800 | [diff] [blame] | 3 | include "frc971/control_loops/profiled_subsystem.fbs"; |
| 4 | include "frc971/zeroing/constants.fbs"; |
James Kuszmaul | 667b059 | 2023-02-25 16:32:59 -0800 | [diff] [blame] | 5 | include "y2023/localizer/scoring_map.fbs"; |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 6 | |
| 7 | namespace y2023; |
| 8 | |
| 9 | table CameraConfiguration { |
| 10 | calibration:frc971.vision.calibration.CameraCalibration (id: 0); |
| 11 | } |
| 12 | |
James Kuszmaul | 202e438 | 2023-03-05 14:56:55 -0800 | [diff] [blame] | 13 | // Data point for a single time of flight sensor reading. Used in a linear |
| 14 | // interpolation table. |
| 15 | table 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 | |
| 24 | table TimeOfFlight { |
| 25 | interpolation_table:[TimeOfFlightDatum] (id: 0); |
| 26 | } |
| 27 | |
| 28 | table 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 Kuszmaul | 630ab1d | 2024-01-09 16:38:57 -0800 | [diff] [blame] | 32 | wrist_zero:frc971.zeroing.AbsoluteEncoderZeroingConstants (id: 1); |
James Kuszmaul | 202e438 | 2023-03-05 14:56:55 -0800 | [diff] [blame] | 33 | } |
| 34 | |
James Kuszmaul | 4fe845a | 2023-03-26 12:57:30 -0700 | [diff] [blame] | 35 | // Set of april tag targets, by april tag ID, to ignore when on a |
| 36 | // given alliance. |
| 37 | table IgnoreTargets { |
| 38 | red:[uint64] (id: 0); |
| 39 | blue:[uint64] (id: 1); |
| 40 | } |
| 41 | |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 42 | table Constants { |
| 43 | cameras:[CameraConfiguration] (id: 0); |
Yash Chainani | 2ac8cb6 | 2023-01-14 16:36:36 -0800 | [diff] [blame] | 44 | target_map:frc971.vision.TargetMap (id: 1); |
James Kuszmaul | 667b059 | 2023-02-25 16:32:59 -0800 | [diff] [blame] | 45 | scoring_map:localizer.ScoringMap (id: 2); |
James Kuszmaul | 202e438 | 2023-03-05 14:56:55 -0800 | [diff] [blame] | 46 | robot:RobotConstants (id: 3); |
James Kuszmaul | 4fe845a | 2023-03-26 12:57:30 -0700 | [diff] [blame] | 47 | ignore_targets:IgnoreTargets (id: 4); |
James Kuszmaul | 630ab1d | 2024-01-09 16:38:57 -0800 | [diff] [blame] | 48 | wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemCommonParams (id: 5); |
James Kuszmaul | d67f6d2 | 2023-02-05 17:37:25 -0800 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | root_type Constants; |