Skip to content

Spring-mass sim via state_step (closed-loop plant.step MVP) - #198

Merged
godofecht merged 1 commit into
mainfrom
feat/pattern-adoption-plant-step
Aug 5, 2026
Merged

godofecht merged 1 commit into
mainfrom
feat/pattern-adoption-plant-step

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • Rewrite examples/evolution/spring_mass_control.flow sim loop onto dsys_continuous + dsys_euler_discretize + state_step
  • Removes hand-coded Ad/Bd constants from main ([roadmap] Closed-loop plant.step from dsys/connect #160 partial)
  • Follow-on: expose DSL __dsys_plant to user scope so the rebuild helper disappears

Test plan

  • python3 -m flow.transpiler examples/evolution/spring_mass_control.flow --c --lenient

Made with Cursor

Drop hand-coded Ad/Bd Euler in the tourist control demo; rebuild the same
continuous plant via dynamics helpers and step open/closed trajectories with
state_step (#160 partial).

Co-authored-by: Cursor <[email protected]>
@godofecht
godofecht merged commit 173418d into main Aug 5, 2026
13 checks passed
@godofecht
godofecht deleted the feat/pattern-adoption-plant-step branch August 5, 2026 13:25
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