James (Peilun) Li | a70e575 | 2024-09-18 20:43:00 -0700 | [diff] [blame] | 1 | include "frc971/vision/calibration.fbs"; |
| 2 | include "frc971/vision/target_map.fbs"; |
| 3 | include "frc971/control_loops/profiled_subsystem.fbs"; |
| 4 | include "frc971/zeroing/constants.fbs"; |
| 5 | include "frc971/math/matrix.fbs"; |
| 6 | |
| 7 | namespace y2024_bot3; |
| 8 | |
| 9 | table CameraConfiguration { |
| 10 | calibration:frc971.vision.calibration.CameraCalibration (id: 0); |
| 11 | } |
| 12 | |
James (Peilun) Li | e9ee3e6 | 2024-11-03 21:24:21 -0800 | [diff] [blame] | 13 | table ArmPositions { |
| 14 | intake:double (id: 0); |
| 15 | idle:double (id: 1); |
| 16 | amp:double (id: 2); |
| 17 | } |
| 18 | |
| 19 | table PotAndAbsEncoderConstants { |
| 20 | zeroing_constants:frc971.zeroing.PotAndAbsoluteEncoderZeroingConstants (id: 0); |
| 21 | potentiometer_offset:double (id: 1); |
| 22 | arm_positions:ArmPositions (id: 2); |
| 23 | } |
| 24 | |
James (Peilun) Li | a70e575 | 2024-09-18 20:43:00 -0700 | [diff] [blame] | 25 | table RobotConstants { |
James (Peilun) Li | e9ee3e6 | 2024-11-03 21:24:21 -0800 | [diff] [blame] | 26 | arm_constants:PotAndAbsEncoderConstants (id: 0); |
James (Peilun) Li | a70e575 | 2024-09-18 20:43:00 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | // Common table for constants unrelated to the robot |
| 30 | table Common { |
| 31 | target_map:frc971.vision.TargetMap (id: 0); |
James (Peilun) Li | e9ee3e6 | 2024-11-03 21:24:21 -0800 | [diff] [blame] | 32 | arm:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemCommonParams (id: 1); |
James (Peilun) Li | a70e575 | 2024-09-18 20:43:00 -0700 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | table Constants { |
| 36 | cameras:[CameraConfiguration] (id: 0); |
| 37 | robot:RobotConstants (id: 1); |
| 38 | common:Common (id: 2); |
| 39 | } |
| 40 | |
| 41 | root_type Constants; |