Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Initial motors class#162

Open
chrisruk wants to merge 4 commits intomain from
motorimprovements2
Open

Initial motors class #162
chrisruk wants to merge 4 commits intomain from
motorimprovements2

Conversation

@chrisruk
Copy link
Contributor

@chrisruk chrisruk commented Sep 1, 2022

No description provided.

for motor in self._ports:
setup = f"port {motor.port} ; combi 0 1 0 2 0 3 0 ; select 0 ; pid {motor.port} 0 0 s1 1 0 0.003 0.01 0 100;\r"
self._write(setup)
cmd += f"port {motor.port} ; set {speed} ; "
Copy link
Contributor

@mutesplash mutesplash Sep 1, 2022

Choose a reason for hiding this comment

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

We had a problem in PR #125 where combi initialization was causing a noticeable lag in motor pairings, so it was separated out from the set speed. Perhaps loop the motor list again and put the set command in there so there's not as much lag between the starting motor movements?

Copy link
Contributor Author

@chrisruk chrisruk Sep 1, 2022

Choose a reason for hiding this comment

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

Good point, will definitely have to alter for that! This is very rough at the moment

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

Reviewers

1 more reviewer

@mutesplash mutesplash mutesplash left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /