Expose More of Our Shooter Status in The Debugging Site
Signed-off-by: Niko Sohmers <nikolai@sohmers.com>
Change-Id: I9b1228bbc91b95ae2469562c009e8fbec8bf36a5
diff --git a/y2024/www/field_handler.ts b/y2024/www/field_handler.ts
index 949b34b..d694108 100644
--- a/y2024/www/field_handler.ts
+++ b/y2024/www/field_handler.ts
@@ -70,6 +70,13 @@
private altitude_ready_for_load: HTMLElement =
(document.getElementById('altitude_ready_for_load') as HTMLElement);
+ private turret_in_range: HTMLElement =
+ (document.getElementById('turret_in_range') as HTMLElement);
+ private altitude_in_range: HTMLElement =
+ (document.getElementById('altitude_in_range') as HTMLElement);
+ private altitude_above_min_angle: HTMLElement =
+ (document.getElementById('altitude_above_min_angle') as HTMLElement);
+
private intakePivot: HTMLElement =
(document.getElementById('intake_pivot') as HTMLElement);
@@ -323,6 +330,12 @@
this.setBoolean(this.extend_ready_for_catapult_transfer, this.superstructureStatus.extendReadyForCatapultTransfer());
+ this.setBoolean(this.turret_in_range, this.superstructureStatus.shooter().turretInRange())
+
+ this.setBoolean(this.altitude_in_range, this.superstructureStatus.shooter().altitudeInRange())
+
+ this.setBoolean(this.altitude_above_min_angle, this.superstructureStatus.shooter().altitudeAboveMinAngle())
+
if (this.superstructureStatus.shooter() &&
this.superstructureStatus.shooter().aimer()) {
this.turret_position.innerHTML = this.superstructureStatus.shooter()