Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to wire up Brushless settings #79

Closed
wants to merge 40 commits into from

Conversation

jedahan
Copy link
Collaborator

@jedahan jedahan commented Aug 12, 2023

No description provided.

Comment on lines +225 to 228
for await (const d of ebbs(device, model)) {
ebb = d;
broadcast({c: "dev", p: {path: ebb ? /*ebb.port.path*/"/dev/XXX" : null}});
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this seems fragile - all EBBs need to be of the same model :/

@alexrudd2
Copy link
Owner

Oh, I'm sorry I didn't see this! I was working locally and ended up doing many of the same things, then pushed them last night. Let me take a look at what you've done. Thanks for the PR!

@jedahan
Copy link
Collaborator Author

jedahan commented Aug 22, 2023

It's taking me a bit of time to test since I'm on a pi zero and need to compile a modern nodejs first - will undraft after testing

@alexrudd2
Copy link
Owner

OK, so it looks like you and I ended up basically doing the same thing. Slightly different terminology but the same code patterns.

alexrudd2 and others added 17 commits September 1, 2023 18:24
* (fix): Switch React API from v17 to v18

* Update src/ui.tsx

---------

Co-authored-by: Jeremy Rose <[email protected]>
* chore(deps): update dependency ts-loader to v9

* update package-lock

---------

Co-authored-by: Jeremy Rose <[email protected]>
* chore(deps): update dependency rimraf to v5

* update package-lock

---------

Co-authored-by: Jeremy Rose <[email protected]>
* chore(deps): update dependency worker-loader to v3

* update package-lock

---------

Co-authored-by: Jeremy Rose <[email protected]>
* chore(deps): update dependency file-loader to v6

* update package-lock

* revert

* update package-lock

---------

Co-authored-by: Jeremy Rose <[email protected]>
* chore(deps): update dependency @types/node to 14.x

* Specifiy minimum node version
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alex Ruddick <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@alexrudd2
Copy link
Owner

alexrudd2 commented Sep 3, 2023

I'm going to rebase on top of main to reduce some of the conflicts.

(45ec256 was the last commit in my brushless branch)

@jedahan
Copy link
Collaborator Author

jedahan commented Sep 3, 2023

i have to split my changes into 2 branches one that is brushless specific, and one that is raspberry pi zero specific.

@jedahan
Copy link
Collaborator Author

jedahan commented Sep 4, 2023

FYI this old patchset is working fine on my axidraw with brushless upgrade - lmk if you want me to change anything or abandon it or whatever. Its gotten a bit messy so I can rebase and re-apply, or wait for your changes to be ready to test.

@jedahan jedahan closed this Sep 4, 2023
@alexrudd2
Copy link
Owner

FYI this old patchset is working fine on my axidraw with brushless upgrade - lmk if you want me to change anything or abandon it or whatever. Its gotten a bit messy so I can rebase and re-apply, or wait for your changes to be ready to test.

What do you mean by "old patchset" - my branch, or yours? I don't particularly care which implementation we use.

Mine works on real hardware with one exception - it smashes the pen to the limit stop at the end of the drawing. What numbers are you using here?

saxi/src/planning.ts

Lines 120 to 121 in f061831

penServoMin: 5400, // pen down
penServoMax: 9600, // pen up

@jedahan
Copy link
Collaborator Author

jedahan commented Sep 8, 2023

Oh I just meant that the changes in jedahan:brushless diverged from its original purpose of just wiring up what was there. I'll try using alexrudd2:brushless and if that obsoletes jedahan:brushless-v2 will close both branches.

@jedahan
Copy link
Collaborator Author

jedahan commented Sep 8, 2023

I was using

  penServoMin: 5400,  // pen down
  penServoMax: 9600, // pen up

as you were, but nornagon#136 says it should be

        penServoMin: 5400,
        penServoMax: 12600,

or with the strong spring:

        penServoMin: 5400,
        penServoMax: 10000,

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.

2 participants