Skip to content

Gate hopper behind feature flag#167

Merged
nlaverdure merged 3 commits intomainfrom
hopper-feature-flag
Mar 19, 2026
Merged

Gate hopper behind feature flag#167
nlaverdure merged 3 commits intomainfrom
hopper-feature-flag

Conversation

@nlaverdure
Copy link
Member

@nlaverdure nlaverdure commented Mar 18, 2026

Closes #165

Summary

  • Add Constants.FeatureFlags.kHopperEnabled (default true) — set to false to disable the hopper entirely
  • Move PROFILING_ENABLED into the new FeatureFlags inner class alongside it; update all references across Drive, Module, Feeder, Hopper, Intake, Launcher, and Vision
  • When kHopperEnabled is false: hopper is not constructed, intake/hopper interlocks are not wired (intake falls back to its null-check no-op path), and the Zorro D button binding is skipped

Test plan

  • Verify robot builds and operates normally with kHopperEnabled = true
  • Set kHopperEnabled = false, verify robot builds with no errors or warnings
  • With flag off, confirm intake deploys and retracts without waiting on hopper
  • With flag off, confirm Zorro D button has no effect

🤖 Generated with Claude Code

nlaverdure and others added 3 commits March 18, 2026 17:11
- Add Constants.FeatureFlags with kHopperEnabled (default true) and
  PROFILING_ENABLED (moved from top-level Constants)
- Skip hopper construction, interlock wiring, and button binding when
  flag is off; intake deploy/reverse fall back to no-op interlock
- Update all PROFILING_ENABLED references across subsystems to use
  Constants.FeatureFlags

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nlaverdure nlaverdure merged commit bf39a94 into main Mar 19, 2026
2 checks passed
@nlaverdure nlaverdure deleted the hopper-feature-flag branch March 19, 2026 23:06
@nlaverdure nlaverdure restored the hopper-feature-flag branch March 19, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hopper feature flag

1 participant