Ver código fonte

wip

* getting rid of some compiler warning messages
* added spacers
* tweaking speed of exported ngc files
clementinecomputing 6 anos atrás
pai
commit
c4dd76b77b

+ 1 - 0
busunit/PIU/piu_main.c

@@ -496,6 +496,7 @@ int main(int argc, char **argv)
                     {
                         message_callback_return msg_status;
                         msg_status = process_message(&incoming_msg);
+                        if (msg_status < 0) { }
                     }
                 
                 }

+ 2 - 1
busunit/commhub/commserver.c

@@ -474,7 +474,7 @@ int rebuild_client_fds()
 int accept_client()
 {
     int retval;
-    int sendret;
+    int sendret = 0;
     struct message_record msg;
     
     //try to accept the new client
@@ -492,6 +492,7 @@ int accept_client()
             prepare_message(&msg,MAILBOX_ERROR,"MAXCLIENTS",10);	//send an error
 
             DO_SEND_MESSAGE(sendret, retval, &msg);
+            if (sendret < 0) { }
 
             close(retval);						//close the socket
             return -1;							//and return

+ 42 - 0
experiment/production/housing/v2/PopufareHousingSpacer.scad

@@ -0,0 +1,42 @@
+// License: CC0
+//
+// To the extent possible under law, Clementine Computing LLC has waived
+// all copyright and related or neighboring rights to this file.
+//
+// This work is published from: United States.
+//
+
+include <PopufareHousingCommon.scad>
+
+module PopufareHousingSpacerPlate() {
+  
+  w0 = POPUFARE_HINGE_TOP_HOLE_WIDTH + POPUFARE_HINGE_D*3;
+  h0 = POPUFARE_HINGE_D*4;
+  dx0 = POPUFARE_HINGE_TOP_HOLE_WIDTH;
+  _r0 = POPUFARE_HINGE_D/2;
+  translate([0,h0/2 + 1])
+  difference() {
+    rounded_rect(w0, h0, _r0);
+    translate([-dx0/2, 0]) circle(POPUFARE_HINGE_D/2);
+    translate([ dx0/2, 0]) circle(POPUFARE_HINGE_D/2);
+  };
+  
+  w1 = POPUFARE_HINGE_D*4;
+  h1 = POPUFARE_HINGE_D*4;
+  dx1 = POPUFARE_HINGE_BACK_HOLE_WIDTH;
+  translate( [-w1/2-1, -h1/2-1 ])
+  difference() {
+    rounded_rect(w1, h1, _r0);
+    translate([0, 0]) circle(POPUFARE_HINGE_D/2);
+  }
+  
+  translate( [ w1/2+1, -h1/2-1 ])
+  difference() {
+    rounded_rect(w1, h1, _r0);
+    translate([0, 0]) circle(POPUFARE_HINGE_D/2);
+  }
+  
+}
+
+
+//PopufareHousingSpacerPlate();

+ 2 - 2
experiment/production/housing/v2/export/export-all

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-VERSION=0.1.1
+VERSION=0.1.2
 
 function ngc_position {
   ifn="$1"
@@ -51,7 +51,7 @@ for fn in `ls ../Popufare*.scad  | grep -v PopufareHousingCommon.scad ` ; do
   ngc_position "$ngc" 2> /dev/null
 
   sed -i 's/F800/F600/g' "$ngc"
-  sed -i 's/G0/G0 F5000/g' "$ngc"
+  sed -i 's/G0\(.*\)S\(.*\)/G0\1 F5000 S\2/g' "$ngc"
 
 done