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

B11 should not trigger position error alarm #456

Conversation

blurfl
Copy link
Collaborator

@blurfl blurfl commented Jul 7, 2018

The B11 gcode moves a motor at speed S for T seconds. It should not trigger the position error alarm as it is a testing gcode.

Usage example (moves the left motor at speed 200 for 2 seconds:
B11 L1 S200 T2

(S)peed accepts a float but treats that as an integer 0..255
(T)ime is a float

The B11 gcode moves a motor at speed S for T seconds. It should not trigger the position error alarm as it is a testing gcode.

Usage example (moves the left motor at speed 200 for 2 seconds:
B11 L1 S200 T2

(S)peed accepts a float but treats that as an integer 0..255
(T)ime is a float
@MaslowCommunityGardenRobot
Copy link
Collaborator

Congratulations on the pull request @blurfl

Now we need to decide as a community if we want to integrate these changes. Vote by giving this comment a thumbs up or a thumbs down. Votes are counted in 48 hours. Ties will not be merged.

I'm just a robot, but I love to see people contributing so I'm going vote thumbs up!

@MaslowCommunityGardenRobot
Copy link
Collaborator

Time is up and we're ready to merge this pull request. Great work!

@MaslowCommunityGardenRobot MaslowCommunityGardenRobot merged commit 6c941eb into MaslowCNC:master Jul 9, 2018
Copy link
Contributor

@esspe2 esspe2 left a comment

Choose a reason for hiding this comment

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

Hi,

Sorry to jump into a closed PR, but if you want to clear the bit afterwards, I think this would be better for line 267:

sys.state = (sys.state & (~STATE_POS_ERR_IGNORE));

I mean AND'ing sys.state with all bits except the one to be cleared, and using binary NOT(~) instead of boolean NOT(!).

Unless I'm mistaken.

Regards, S. Peters.

@blurfl
Copy link
Collaborator Author

blurfl commented Apr 28, 2019

That's a good find! A PR to correct that would be great. Very glad to see the details checked, code polished.

@esspe2
Copy link
Contributor

esspe2 commented Apr 28, 2019 via email

@BarbourSmith
Copy link
Member

Great to see you @blurfl, we've missed you 😀

@blurfl blurfl deleted the B11-should-not-trigger-position-error-alarm branch June 22, 2019 06:34
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.

4 participants