Skip to content

Commit

Permalink
Stl and img export
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles R committed Nov 19, 2012
1 parent d27c9a7 commit 4e63647
Show file tree
Hide file tree
Showing 30 changed files with 2,892 additions and 1,267 deletions.
4 changes: 2 additions & 2 deletions cad/leg.scad
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module main_arm() {
}
}

if (1) {
if (0) {
// View all piece...

translate([-30, 0, 0]) {
Expand Down Expand Up @@ -203,6 +203,6 @@ if (1) {

//main_arm();
//long_arm();
//short_arm();
short_arm();
}

27 changes: 13 additions & 14 deletions cad/leg_holder.scad
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LEG_HOLDER_MAX_WALL_THICKNESS = 3;
* - Agrandir la fente des pattes pour limiter les frottements ?
*/

module servo_holder(is_top = true, boolean = false) {
module servo_holder(boolean = false) {

//position_z = (is_top) ? 8 : 7.6;
position_z = 7.8; // Average
Expand Down Expand Up @@ -144,45 +144,45 @@ module support() {
// Top
translate([CHANFREIN + SERVO_HOLDER_WIDTH / 2 - 2, -SERVO_WIDTH, SERVO_LENGTH + 4]) {
rotate([0, 180, 0]) {
color("RED") servo_holder(true);
color("RED") servo_holder();

if (rail) {
translate([0, 0, CONNECTION_HEIGHT]) {
servo_holder(true, true);
servo_holder(true);
}
}
}
}

translate([CHANFREIN + SERVO_HOLDER_WIDTH - 2.5, -SERVO_WIDTH, SERVO_LENGTH + 4]) {
rotate([0, 180, 0]) {
color("BLUE") servo_holder(true);
color("BLUE") servo_holder();

if (rail) {
translate([0, 0, CONNECTION_HEIGHT]) {
servo_holder(true, true);
servo_holder(true);
}
}
}
}

// Bottom
translate([CHANFREIN + SERVO_HOLDER_WIDTH / 2 - 2, -SERVO_WIDTH, SERVO_HOLDER_HEIGHT - 3]) {
color("RED") servo_holder(false);
color("RED") servo_holder();

if (rail) {
translate([0, 0, CONNECTION_HEIGHT]) {
servo_holder(false, true);
servo_holder(true);
}
}
}

translate([CHANFREIN + SERVO_HOLDER_WIDTH - 2.5, -SERVO_WIDTH, SERVO_HOLDER_HEIGHT - 3]) {
color("BLUE") servo_holder(true);
color("BLUE") servo_holder();

if (rail) {
translate([0, 0, CONNECTION_HEIGHT]) {
servo_holder(false, true);
servo_holder(true);
}
}
}
Expand Down Expand Up @@ -312,7 +312,7 @@ module rudder(length = 8) {
}


if (1) {
if (0) {
translate([-14, -40, 0]) {
support();

Expand All @@ -325,15 +325,14 @@ if (1) {
}

if (DEMO) {
translate([-20, 0, 4]) rotate([0, 180, 0]) servo_holder(true);
translate([10, 0, 4]) rotate([0, 180, 0]) servo_holder(false);
translate([-20, 0, 4]) rotate([0, 180, 0]) servo_holder();
translate([10, 0, 4]) rotate([0, 180, 0]) servo_holder();

translate([30, 0, 0]) rudder();
}

} else {
rudder();
//translate([0, 0, 4]) rotate([0, 180, 0]) servo_holder(true);
//translate([30, 0, 4]) rotate([0, 180, 0]) servo_holder(false);
//rotate([0, 180, 0]) servo_holder();
}

4 changes: 2 additions & 2 deletions cad/spacer.scad
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ module spacer(length, width, thickness, support = false) {

if (1) {
// Small
//spacer(ARMS_SPACING, ARM_WIDTH, ARM_THICKNESS, true);
spacer(ARMS_SPACING, ARM_WIDTH, ARM_THICKNESS, false);
spacer(ARMS_SPACING, ARM_WIDTH, ARM_THICKNESS, true);
//spacer(ARMS_SPACING, ARM_WIDTH, ARM_THICKNESS, false);

// Large
//spacer(ARMS_SPACING + ARM_THICKNESS * 2 - 1, 15, ARM_THICKNESS);
Expand Down
Binary file modified export/img/leg_holder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/leg_holder_pieces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/leg_long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/leg_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/leg_short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/rudder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/servo_holder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/spacer_end.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/spacer_long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/spacer_short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified export/img/thumbs/leg_holder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/leg_holder_pieces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/leg_long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/leg_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added export/img/thumbs/leg_short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/rudder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/servo_holder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/spacer_end.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/spacer_long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added export/img/thumbs/spacer_short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4e63647

Please sign in to comment.