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

Request: Change Default Extend Chain Length to 1651 mm #784

Open
madgrizzle opened this issue Dec 17, 2018 · 14 comments
Open

Request: Change Default Extend Chain Length to 1651 mm #784

madgrizzle opened this issue Dec 17, 2018 · 14 comments

Comments

@madgrizzle
Copy link
Contributor

No description provided.

@madgrizzle madgrizzle changed the title Request: Change Default Request: Change Default Extend Chain Length to 1651 mm Dec 17, 2018
@madgrizzle
Copy link
Contributor Author

Can we change the default extend chain length to 1651 mm. This is a multiple of the chain pitch (6.35 mm) and would result in one of the sprocket teeth being at 12 o'clock when the chains are extended. This would let someone mark the link that's at that position and easily reset the chain length.

@davidelang
Copy link
Contributor

davidelang commented Dec 17, 2018 via email

@BarbourSmith
Copy link
Member

I agree with everything above. We are going to step on the toes of some folks who have the link marked when we do this even by following the steps above. Are we OK with that?

@davidelang
Copy link
Contributor

davidelang commented Dec 17, 2018 via email

@GeroBH
Copy link
Contributor

GeroBH commented Feb 13, 2019

This is from 17 Dec 2018 and chain pitch 6.35 seems not to be constant but more of a variable that (from what i understand) is implemented in current development. Can this be closed?
There is a default, but the setting can be changed at will in .ini -> chainpitch = 6.35 and in GC advanced.

@BarbourSmith
Copy link
Member

I am not up enough on the current state of the chain pitch code to be 100% sure, but from my understanding, what you are saying @gero is correct. I think this can be closed

@madgrizzle
Copy link
Contributor Author

This wasn't related to changing the chain pitch from 6.35. What the original request was for was to make it so that the default value for extend chain length was an integral value of the chain pitch so that once the chain was extended, there would be a link exactly at 12 o'clock. @davidelang recommended making modifications so that it would be computed based upon distance between motors (a better idea, but took more work to do). To me, changing the default to 1651 mm would be a quality-of-life improvement for people starting out and building the default frame. There's really no reason the default should be 1650 mm.

@GeroBH
Copy link
Contributor

GeroBH commented Feb 14, 2019

Sorry, I got it now. Considering the lager numbers of wider 'top-beam' 1651mm does not let you attach the sled. Is a calculated value based on the motor distance to end up with a tooth at 12 o'clock an option? As a default the above makes sense.

@madgrizzle
Copy link
Contributor Author

"Is a calculated value based on the motor distance to end up with a tooth at 12 o'clock an option?"

No one has developed the code / PR to accomplish this. It's the better solution, but its really easy to change 1650 to 1651 to handle what is likely a majority of new builds.

@GeroBH
Copy link
Contributor

GeroBH commented Feb 14, 2019

2 files for the pull request:
Firmware-1.26/cnc_ctrl_v1/Settings.cpp line 77: sysSettings.originalChainLength = 1650; // int originalChainLength;

GroundControl-1.26/Settings/maslowSettings.py line 234: "default": 1650

@davidelang
Copy link
Contributor

davidelang commented Feb 14, 2019 via email

@GeroBH
Copy link
Contributor

GeroBH commented Feb 15, 2019

Sorry to bug, but i'm confused again, why we would 'step one any toes' doing this.
If we feed out 1650, both sprockets are not with a tooth on 12 o'clock. Slightly to the outside the equal of 1mm chain in °. If we mark the top link, loose position, set sprockets to 12'oclock, put the chains back on, aren't the chains now 1651mm and we are telling the software that it's 1650?
Isn't it the same top link with 1650 and 1651?
Isn't the current state a bug that is <1mm in Y and therefore not noticed?

@madgrizzle
Copy link
Contributor Author

That's basically correct Gero. It's the default setting so it won't affect actually change anyone's current setting.. it only applies to new builds where someone doesn't have a groundcontrol.ini file. All this does is make sure when people setup their new maslow with 10-foot top beams that the extend chain length results in a tooth at 12 o'clock that can then be marked and if they use the process to reset their chain lengths, they won't be off by the 1 mm amount.

@madgrizzle
Copy link
Contributor Author

So I made a PR for it in the two files (though you really don't have to do it in FW, but its nice to keep it consistent). I hadn't done so previously because I misread the message when I tried and thought it might mess up my other stuff and I'd have to deal with removing optical calibration, etc. from my fork but apparently the process is simple and creates a new branch in my fork. Little did I know. Much to learn about git.

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

No branches or pull requests

4 participants