diff options
author | Joshua Shreve <j.a.shreve@gmail.com> | 2021-08-13 21:12:36 -0400 |
---|---|---|
committer | Joshua Shreve <j.a.shreve@gmail.com> | 2021-08-13 21:12:36 -0400 |
commit | 206391e59865281b8d8e7db499c30dd36d27b7c7 (patch) | |
tree | 55460e9829fa1a03d54aae325382f5cbe90bcc4c /src/generate_configuration.py | |
parent | d24e5b2847300e24149156146c7212ca9aebee2d (diff) |
Fixed non-ball side rendering for trackball thumb. Still WIP.
Diffstat (limited to 'src/generate_configuration.py')
-rw-r--r-- | src/generate_configuration.py | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/generate_configuration.py b/src/generate_configuration.py index f454d24..d6f0180 100644 --- a/src/generate_configuration.py +++ b/src/generate_configuration.py @@ -7,8 +7,8 @@ r2d = 180 / pi shape_config = { - # 'ENGINE': 'solid', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade - 'ENGINE': 'cadquery', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade + 'ENGINE': 'solid', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade + # 'ENGINE': 'cadquery', # 'solid' = solid python / OpenSCAD, 'cadquery' = cadquery / OpenCascade ###################### @@ -44,7 +44,7 @@ shape_config = { ############################## # THUMB PARAMETERS ############################## - 'thumb_style': 'MINI', # 'DEFAULT' 6-key, 'MINI' 5-key, 'CARBONFET' 6-key, 'MINIDOX' 3-key, 'TRACKBALL' + 'thumb_style': 'TRACKBALL', # 'DEFAULT' 6-key, 'MINI' 5-key, 'CARBONFET' 6-key, 'MINIDOX' 3-key, 'TRACKBALL' 'default_1U_cluster': False, # only used with default, makes top right thumb cluster key 1U 'minidox_Usize': 1.6 , # Thumb key size. May need slight oversizing, check w/ caps. Additional spacing will be automatically added for larger keys. @@ -60,7 +60,7 @@ shape_config = { ################################### ## Trackball in Wall ## ################################### - 'trackball_in_wall': True, # Separate trackball option, placing it in the OLED area + 'trackball_in_wall': False, # Separate trackball option, placing it in the OLED area 'tbiw_hole_diameter': 36, 'tbiw_hole_height': 40, 'tbiw_ball_center_row': 0.2, # up from cornerrow instead of down from top @@ -76,11 +76,24 @@ shape_config = { 'tbiw_oled_rotation_offset': (0, 0, 0), ################################### - ## Trackball Thumb Cluster ## + ## Trackball JS Thumb Cluster ## ################################### - - - + 'other_thumb': 'DEFAULT', # cluster used for second thumb except if ball_side == 'both' + 'tbjs_key_diameter': 64, + # Offsets are per key and are applied before rotating into place around the ball + # X and Y act like Tangential and Radial around the ball + 'tbjs_translational_offsets': [ + (0.0, 0.0, -3.0), + (0.0, 0.0, -3.0), + (0.0, 0.0, -3.0), + (0.0, 0.0, -3.0), + ], + 'tbjs_rotation_offsets': [ + (0.0, 0.0, 0.0), + (0.0, 0.0, 0.0), + (0.0, 0.0, 0.0), + (0.0, 0.0, 0.0), + ], ################################### ## Trackball General ## ################################### @@ -89,7 +102,7 @@ shape_config = { # 'trackball_sensor_rotation': 0.0, # used to rotate the sensor direction around z. 'ball_side': 'right', 'ball_diameter': 34.0, - 'ball_wall_thickness': 3.0, # should not be changed unless the import models are changed. + 'ball_wall_thickness': 3.0+2.0, # should not be changed unless the import models are changed. 'ball_gap':1.0, 'ball_z_offset': -3.0, |