Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame^] | 1 | import {ByteBuffer} from 'flatbuffers' |
| 2 | import {ClientStatistics} from '../../aos/network/message_bridge_client_generated' |
| 3 | import {ServerStatistics, State as ConnectionState} from '../../aos/network/message_bridge_server_generated' |
| 4 | import {Connection} from '../../aos/network/www/proxy' |
| 5 | import {ZeroingError} from '../../frc971/control_loops/control_loops_generated' |
| 6 | import {Position as DrivetrainPosition} from '../../frc971/control_loops/drivetrain/drivetrain_position_generated' |
| 7 | import {CANPosition as DrivetrainCANPosition} from '../../frc971/control_loops/drivetrain/drivetrain_can_position_generated' |
| 8 | import {Status as DrivetrainStatus} from '../../frc971/control_loops/drivetrain/drivetrain_status_generated' |
| 9 | import {LocalizerOutput} from '../../frc971/control_loops/drivetrain/localization/localizer_output_generated' |
| 10 | import {TargetMap} from '../../frc971/vision/target_map_generated' |
| 11 | |
| 12 | |
| 13 | import {FIELD_LENGTH, FIELD_WIDTH, FT_TO_M, IN_TO_M} from './constants'; |
| 14 | |
| 15 | // (0,0) is field center, +X is toward red DS |
| 16 | const FIELD_SIDE_Y = FIELD_WIDTH / 2; |
| 17 | const FIELD_EDGE_X = FIELD_LENGTH / 2; |
| 18 | |
| 19 | const ROBOT_WIDTH = 25 * IN_TO_M; |
| 20 | const ROBOT_LENGTH = 32 * IN_TO_M; |
| 21 | |
| 22 | export class FieldHandler { |
| 23 | constructor(private readonly connection: Connection) { |
| 24 | } |
| 25 | } |