Skip to content

IntakeExtension cleanups#100

Open
kcooney wants to merge 1 commit into
kcooney/simulation-classfrom
kcooney/intake
Open

IntakeExtension cleanups#100
kcooney wants to merge 1 commit into
kcooney/simulation-classfrom
kcooney/intake

Conversation

@kcooney

@kcooney kcooney commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

With these changes, the IntakeExtensionIOSim exercises more of the "real"
code.

  • Refactor IntakeExtensionIOSim to delegate to IntakeExtensionIOReal
  • To ensure the above change is safe, remove default implementations in IntakeExtensionIO
  • Created IntakeExtensionIOStub (for use in replay mode)
  • Merge tests in IntakeExtensionTest using assertAll()

@kcooney kcooney force-pushed the kcooney/intake branch 8 times, most recently from bbc5cbe to 630048e Compare March 9, 2026 18:27
@kcooney kcooney force-pushed the kcooney/simulation-class branch from 3a85145 to 16d9805 Compare March 11, 2026 04:35
@kcooney kcooney changed the base branch from kcooney/simulation-class to kcooney/intake-resolve-todo March 11, 2026 05:13
@kcooney kcooney force-pushed the kcooney/intake-resolve-todo branch from 139c389 to 09c5da3 Compare March 12, 2026 00:58
Base automatically changed from kcooney/intake-resolve-todo to main March 12, 2026 03:59
@kcooney kcooney changed the base branch from main to kcooney/simulation-class March 12, 2026 04:32
@kcooney kcooney force-pushed the kcooney/simulation-class branch from 3a78c0b to 6f42251 Compare March 19, 2026 00:59
@kcooney kcooney force-pushed the kcooney/simulation-class branch from 6f42251 to ddd1f36 Compare March 19, 2026 01:33
@kcooney kcooney force-pushed the kcooney/intake branch 2 times, most recently from 6835a41 to 2e9e375 Compare March 19, 2026 01:42
@kcooney kcooney force-pushed the kcooney/simulation-class branch from ddd1f36 to ac1d86d Compare March 19, 2026 01:44
@kcooney kcooney force-pushed the kcooney/simulation-class branch from ac1d86d to 18eb6bb Compare March 21, 2026 00:32
- Refactor `IntakeExtensionIOSim` to delegate to `IntakeExtensionIOReal`
- To ensure the above change is safe, remove default implementations in
  `IntakeExtensionIO`
- Created `IntakeExtensionIOStub` (for use in replay mode)
- Create `Simulation` class
  - move `SIM_TIME_PERIOD` to this class
  - extract `getMotorSupplyVoltage()` and add it to `Simulation`
- Refactor `IntakeExtensionConstants.toMotorSetpoint()` to
  `ExtenderPositions.getAngle()`
- Merge tests in `IntakeExtensionTest` using `assertAll()`
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.

1 participant