Skip to content

Instantly share code, notes, and snippets.

@babo
Last active March 15, 2020 01:15
Show Gist options
  • Save babo/c1be88f2b2f20e86d17af8762f3adbb5 to your computer and use it in GitHub Desktop.
Save babo/c1be88f2b2f20e86d17af8762f3adbb5 to your computer and use it in GitHub Desktop.
Patch for github.com:abstracthat/dactyl-manuform to let it generate 8 columns. The fixed-angles, fixed-x and fixed-z should have at least that many items as the number of columns.
diff --git i/src/dactyl_keyboard/dactyl.clj w/src/dactyl_keyboard/dactyl.clj
index f082903..097ae50 100644
--- i/src/dactyl_keyboard/dactyl.clj
+++ w/src/dactyl_keyboard/dactyl.clj
@@ -14,13 +14,13 @@
;;;;;;;;;;;;;;;;;;;;;;
(def nrows 4)
-(def ncols 5)
+(def ncols 8)
(def α (/ π 12)) ; curvature of the columns
(def β (/ π 36)) ; curvature of the rows
(def centerrow (- nrows 3)) ; controls front-back tilt
(def centercol 4) ; controls left-right tilt / tenting (higher number is more tenting)
-(def tenting-angle (/ π 4)) ; or, change this for more precise tenting control
+(def tenting-angle (/ π 12)) ; or, change this for more precise tenting control
(def column-style
(if (> nrows 5) :orthographic :standard)) ; options include :standard, :orthographic, and :fixed
; (def column-style :fixed)
@@ -46,10 +46,10 @@
;; http://patentimages.storage.googleapis.com/EP0219944A2/imgf0002.png
;; Fixed-z overrides the z portion of the column ofsets above.
;; NOTE: THIS DOESN'T WORK QUITE LIKE I'D HOPED.
-; (def fixed-angles [(deg2rad 10) (deg2rad 10) 0 0 0 (deg2rad -15) (deg2rad -15)])
-; (def fixed-x [-41.5 -22.5 0 20.3 41.4 65.5 89.6]) ; relative to the middle finger
-; (def fixed-z [12.1 8.3 0 5 10.7 14.5 17.5])
-; (def fixed-tenting (deg2rad 0))
+(def fixed-angles [(deg2rad 10) (deg2rad 10) 0 0 0 (deg2rad -15) (deg2rad -15) 0 0])
+(def fixed-x [-41.5 -22.5 0 20.3 41.4 65.5 89.6 100 120]) ; relative to the middle finger
+(def fixed-z [12.1 8.3 0 5 10.7 14.5 17.5 18 19])
+(def fixed-tenting (deg2rad 0))
;;;;;;;;;;;;;;;;;;;;;;;
;; General variables ;;
@@ -582,7 +582,6 @@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment