key_formats.c 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. #include "key_formats.h"
  2. // all lengths in inches since it's all American formats
  3. // angle is in degrees
  4. const KeyFormat all_formats[] = {
  5. {.manufacturer = "Kwikset",
  6. .format_name = "KW1",
  7. .format_link = "https://lsamichigan.org/Tech/Kwikset_KeySpecs.pdf",
  8. .first_pin_inch = 0.247,
  9. .last_pin_inch = 0.847,
  10. .pin_increment_inch = 0.15,
  11. .pin_num = 5,
  12. .pin_width_inch = 0.084,
  13. .elbow_inch = 0.15,
  14. .drill_angle = 90,
  15. .uncut_depth_inch = 0.329,
  16. .deepest_depth_inch = 0.191,
  17. .depth_step_inch = 0.023,
  18. .min_depth_ind = 1,
  19. .max_depth_ind = 7,
  20. .macs = 4,
  21. .clearance = 3},
  22. {.manufacturer = "Schlage",
  23. .format_name = "SC4",
  24. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  25. .first_pin_inch = 0.231,
  26. .last_pin_inch = 1.012,
  27. .pin_increment_inch = 0.1562,
  28. .pin_num = 6,
  29. .pin_width_inch = 0.031,
  30. .elbow_inch = 0.1,
  31. .drill_angle =
  32. 90, // This should actually be 100 but the current resolution will make
  33. // 100 degrees very ugly and unsuable
  34. .uncut_depth_inch = 0.335,
  35. .deepest_depth_inch = 0.2,
  36. .depth_step_inch = 0.015,
  37. .min_depth_ind = 0,
  38. .max_depth_ind = 9,
  39. .macs = 7,
  40. .clearance = 8},
  41. {.manufacturer = "Arrow",
  42. .format_name = "AR4",
  43. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  44. .first_pin_inch = 0.265,
  45. .last_pin_inch = 1.040,
  46. .pin_increment_inch = 0.155,
  47. .pin_num = 6,
  48. .pin_width_inch = 0.060,
  49. .elbow_inch = 0.1,
  50. .drill_angle =
  51. 90, // This should actually be 100 but the current resolution will
  52. // make 100 degrees very ugly and unsuable
  53. .uncut_depth_inch = 0.312,
  54. .deepest_depth_inch = 0.186,
  55. .depth_step_inch = 0.014,
  56. .min_depth_ind = 0,
  57. .max_depth_ind = 10,
  58. .macs = 6,
  59. .clearance = 8},
  60. {.manufacturer = "Master Lock",
  61. .format_name = "M1",
  62. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  63. .first_pin_inch = 0.185,
  64. .last_pin_inch = 0.689,
  65. .pin_increment_inch = 0.126,
  66. .pin_num = 5,
  67. .pin_width_inch = 0.039,
  68. .elbow_inch = 0.1,
  69. .drill_angle =
  70. 90, // This should actually be 100 but the current resolution will make
  71. // 100 degrees very ugly and unsuable
  72. .uncut_depth_inch = 0.276,
  73. .deepest_depth_inch = 0.171,
  74. .depth_step_inch = 0.015,
  75. .min_depth_ind = 0,
  76. .max_depth_ind = 7,
  77. .macs = 7,
  78. .clearance = 8},
  79. {.manufacturer = "American",
  80. .format_name = "AM7",
  81. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  82. .first_pin_inch = 0.157,
  83. .last_pin_inch = 0.781,
  84. .pin_increment_inch = 0.125,
  85. .pin_num = 6,
  86. .pin_width_inch = 0.039,
  87. .elbow_inch = 0.1,
  88. .drill_angle =
  89. 90, // This should actually be 100 but the current resolution will make
  90. // 100 degrees very ugly and unsuable
  91. .uncut_depth_inch = 0.283,
  92. .deepest_depth_inch = 0.173,
  93. .depth_step_inch = 0.016,
  94. .min_depth_ind = 0,
  95. .max_depth_ind = 8,
  96. .macs = 7,
  97. .clearance = 8},
  98. {.manufacturer = "Yale",
  99. .format_name = "Y2",
  100. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  101. .first_pin_inch = 0.200,
  102. .last_pin_inch = 1.025,
  103. .pin_increment_inch = 0.165,
  104. .pin_num = 6,
  105. .pin_width_inch = 0.054,
  106. .elbow_inch = 0.1,
  107. .drill_angle =
  108. 90, // This should actually be 100 but the current resolution will make
  109. // 100 degrees very ugly and unsuable
  110. .uncut_depth_inch = 0.320,
  111. .deepest_depth_inch = 0.145,
  112. .depth_step_inch = 0.025,
  113. .min_depth_ind = 0,
  114. .max_depth_ind = 9,
  115. .macs = 9,
  116. .clearance = 1},
  117. {.manufacturer = "Yale",
  118. .format_name = "Y11",
  119. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  120. .first_pin_inch = 0.124,
  121. .last_pin_inch = 0.502,
  122. .pin_increment_inch = 0.095,
  123. .pin_num = 5,
  124. .pin_width_inch = 0.039,
  125. .elbow_inch = 0.1,
  126. .drill_angle =
  127. 90, // This should actually be 100 but the current resolution will make
  128. // 100 degrees very ugly and unsuable
  129. .uncut_depth_inch = 0.246,
  130. .deepest_depth_inch = 0.167,
  131. .depth_step_inch = 0.020,
  132. .min_depth_ind = 0,
  133. .max_depth_ind = 5,
  134. .macs = 7,
  135. .clearance = 8},
  136. {.manufacturer = "Sargent",
  137. .format_name = "S22",
  138. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  139. .first_pin_inch = 0.216,
  140. .last_pin_inch = 0.996,
  141. .pin_increment_inch = 0.156,
  142. .pin_num = 6,
  143. .pin_width_inch = 0.063,
  144. .elbow_inch = 0.1,
  145. .drill_angle =
  146. 90, // This should actually be 100 but the current resolution will make
  147. // 100 degrees very ugly and unsuable
  148. .uncut_depth_inch = 0.328, // double check
  149. .deepest_depth_inch = 0.148,
  150. .depth_step_inch = 0.020,
  151. .min_depth_ind = 0,
  152. .max_depth_ind = 10,
  153. .macs = 7,
  154. .clearance = 8},
  155. {.manufacturer = "National",
  156. .format_name = "NA25",
  157. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  158. .first_pin_inch = 0.250,
  159. .last_pin_inch = 0.874,
  160. .pin_increment_inch = 0.156,
  161. .pin_num = 5,
  162. .pin_width_inch = 0.039,
  163. .elbow_inch = 0.1,
  164. .drill_angle =
  165. 90, // This should actually be 100 but the current resolution will make
  166. // 100 degrees very ugly and unsuable
  167. .uncut_depth_inch = 0.304,
  168. .deepest_depth_inch = 0.191,
  169. .depth_step_inch = 0.012,
  170. .min_depth_ind = 0,
  171. .max_depth_ind = 10,
  172. .macs = 7,
  173. .clearance = 8},
  174. {.manufacturer = "Corbin",
  175. .format_name = "CO88",
  176. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  177. .first_pin_inch = 0.250,
  178. .last_pin_inch = 1.030,
  179. .pin_increment_inch = 0.156,
  180. .pin_num = 6,
  181. .pin_width_inch = 0.047,
  182. .elbow_inch = 0.1,
  183. .drill_angle =
  184. 90, // This should actually be 100 but the current resolution will make
  185. // 100 degrees very ugly and unsuable
  186. .uncut_depth_inch = 0.343,
  187. .deepest_depth_inch = 0.217,
  188. .depth_step_inch = 0.014,
  189. .min_depth_ind = 0,
  190. .max_depth_ind = 10,
  191. .macs = 7,
  192. .clearance = 8},
  193. {.manufacturer = "Lockwood",
  194. .format_name = "LW4",
  195. .format_link = "",
  196. .first_pin_inch = 0.245,
  197. .last_pin_inch = 0.870,
  198. .pin_increment_inch = 0.1562,
  199. .pin_num = 5,
  200. .pin_width_inch = 0.031,
  201. .elbow_inch = 0.1,
  202. .drill_angle = 90,
  203. .uncut_depth_inch = 0.344,
  204. .deepest_depth_inch = 0.203,
  205. .depth_step_inch = 0.014,
  206. .min_depth_ind = 0,
  207. .max_depth_ind = 9,
  208. .macs = 9,
  209. .clearance = 8},
  210. {.manufacturer = "Lockwood",
  211. .format_name = "LW5",
  212. .format_link = "",
  213. .first_pin_inch = 0.245,
  214. .last_pin_inch = 1.0262,
  215. .pin_increment_inch = 0.1562,
  216. .pin_num = 6,
  217. .pin_width_inch = 0.031,
  218. .elbow_inch = 0.1,
  219. .drill_angle = 90,
  220. .uncut_depth_inch = 0.344,
  221. .deepest_depth_inch = 0.203,
  222. .depth_step_inch = 0.014,
  223. .min_depth_ind = 0,
  224. .max_depth_ind = 9,
  225. .macs = 9,
  226. .clearance = 8},
  227. {.manufacturer = "Ford",
  228. .format_name = "H75",
  229. .sides = 2,
  230. .stop = 2,
  231. .format_link = "https://lsamichigan.org/Tech/SCHLAGE_KeySpecs.pdf",
  232. .first_pin_inch = 0.201,
  233. .last_pin_inch = 0.845,
  234. .pin_increment_inch = 0.092,
  235. .pin_num = 8,
  236. .pin_width_inch = 0.039,
  237. .elbow_inch = 0.201, // this should be equal to first pin inch for tip
  238. // stopped key line
  239. .drill_angle =
  240. 90, // This should actually be 100 but the current resolution will make
  241. // 100 degrees very ugly and unsuable
  242. .uncut_depth_inch = 0.354,
  243. .deepest_depth_inch = 0.254,
  244. .depth_step_inch = 0.025,
  245. .min_depth_ind = 0,
  246. .max_depth_ind = 5,
  247. .macs = 5,
  248. .clearance = 0}};