Skip to content

Add turn90 row advance mode and pen-state simulation#1

Open
peterwolf-pl wants to merge 12 commits into
mainfrom
codex/update-line-drawing-behavior-in-ui-components
Open

Add turn90 row advance mode and pen-state simulation#1
peterwolf-pl wants to merge 12 commits into
mainfrom
codex/update-line-drawing-behavior-in-ui-components

Conversation

@peterwolf-pl
Copy link
Copy Markdown
Owner

Summary

  • add line advance mode parsing and surface the turn90 option through the UI and generator pipeline
  • implement 90-degree row advance pathing in artacodepng.py for turn90 mode
  • render simulator trails with pen-up/down coloring and propagate pen state from ACODE parsing

Testing

  • Not run (not requested)

Codex Task

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e101d4d18e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread artacodepng.py
Comment on lines +321 to +325
if abs(dy) > 1e-9:
turn_dir = math.copysign(math.pi / 2.0, dy)
emit_turn_in_place(out, turn_dir, feed_turn)
heading = wrap_pi(heading + turn_dir)
emit_straight(out, abs(dy), feed_lin)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Choose turn90 vertical turn based on current heading

The new turn90 row advance always turns sign(dy) * 90° before the vertical leg, independent of the current heading. After finishing a serpentine row drawn right‑to‑left the heading is π, so for the next row (dy > 0) this code rotates +90° and drives along −Y, stepping to the wrong row before turning back. In turn90 mode every odd serpentine row will traverse the opposite vertical direction, so the plotter heads to the wrong row and subsequent strokes are misplaced.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant