Skip to content

Commit

Permalink
bolts to top of servo length
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 18, 2018
1 parent efcef6f commit 6939688
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ CSG servoFactory(
CSG builtServo = CSG.unionAll([flange,body,cord])
if(servoConfig!=null){
if(servoConfig.get("numberOfHolesPerFlange")!=null){
LengthParameter boltLength = new LengthParameter("Servo Bolt Length",tipOfShaftToBottomOfFlange,[500,0.01])
LengthParameter boltLength = new LengthParameter("Servo Bolt Length",bottomOfFlangeToTopOfBody,[500,0.01])
boltLength.setMM(bottomOfFlangeToTopOfBody)
double numberOfHolesPerFlange=Double.parseDouble(servoConfig.get("numberOfHolesPerFlange").toString())
double holeDiameter=Double.parseDouble(servoConfig.get("holeDiameter").toString())
double holeEdgetoHoleEdgeLongDistance=Double.parseDouble(servoConfig.get("holeEdgetoHoleEdgeLongDistance").toString())
Expand Down

0 comments on commit 6939688

Please sign in to comment.