Skip to content

More of a question than an issue regarding 4.5u stabilizer offset seemingly wider than it needs to be #38

@Axeia

Description

@Axeia

Hi,

I'm making a Macro for FreeCAD and your tool is the closest that I could find to footprints/dimensions for stabilizers. So I've been borrowing some code from kb_builder. Before finding your excellent code however I did some of my own experiments and calculations and came to the conclusion that a stabilizer wires width is (keySize - 1) * 19.05 (for keySize >=3), and the stabilizer offset is half that size (keySize - 1) * 19.05 * 0.5 this matches the dimensions in your GetCherryStabOffset() method for all sizes almost perfectly.
Figured I should post this question here as its the 'latest' and kb_builder is legacy code now, the relevant code:

kad/key.go

Lines 52 to 69 in 1d51e0f

case 3: // 3u
return 19.05, nil
case 4: // 4u
return 28.575, nil
case 4.5: // 4.5u
return 34.671, nil
case 5.5: // 5.5u
return 42.8625, nil
case 6: // 6u
return 47.5, nil
case 6.25: // 6.25u
return 50, nil
case 6.5: // 6.5u
return 52.38, nil
case 7: // 7u
return 57.15, nil
case 8: // 8u
return 66.675, nil

The only key size that seems to be off by a substantial amount is 4.5u. Is there a particular reason for this or are the dimensions here simply a mix of measured and calculated and 4.5 was measured in not the most accurate of ways? Or is there a particular reason why 4.5 keys differ?

As an easy comparison (your method vs my calculation):

+-------+------------+-----------------------+--------+
| SizeU | kb_builder | formula  | difference |  aio3  |
+========+===========+==========+============+========+
| 3u:    | 19.05     | 19.05    | (eq)       | 19.05  |
| 4u:    | 28.575    | 28.575   | (eq)       | -      |
| 4.5u:  | 34.671    | 33.375   | (-1.296)   | -      |
| 5.5u:  | 42.8625   | 42.8625  | (eq)       | -      |
| 6u:    | 47.5      | 47.625   | (+0.125)   | 47.625 |
| 6.25u: | 50        | 50.00625 | (+0.00625) | 50.0   |
| 6.5u:  | 52.38     | 52.3875  | (+0.0075)  | -      |
| 7u:    | 57.15     | 57.15    | (eq)       | 57.15  |
| 8u:    | 66.675    | 66.675   | (eq)       | 66.675 |
+--------------------+-----------------------+--------+

If you think my formula is correct feel free to use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions