Skip to content

Instantly share code, notes, and snippets.

@greenbigfrog
Created January 16, 2023 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenbigfrog/a4f37cc4803b514081c52fcf307dad91 to your computer and use it in GitHub Desktop.
Save greenbigfrog/a4f37cc4803b514081c52fcf307dad91 to your computer and use it in GitHub Desktop.
rail_length=82;
wedge_length=40;
slider_width=20;
// put rail for permanent spool and put in dent for insertion of sliders. --_--- instead of -----
initial_spool=false;
// put wedge on right side
wedge_right=true;
wedge_left=true;
l = 0;
if (wedge_right) {
l = l+wedge_length;
}
if (wedge_left) {
l = l+wedge_length;
}
if (initial_spool) {
l = l + wedge_length+2*slider_width;
}
echo("min length is l=", l);
assert(rail_length > l, "Rail too short!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment