! Rushabh | Linux Shill - The docs says that Vi...

The docs says that Vias have a default dimension, but it is not implemented, i am adding it now, what should be the defaults. Same as the docs says ??
No description
51 Replies
Seve
Seve•3w ago
whatever the autorouter currently does no the docs are super super wrong on those sizes I believe it's like 0.15 for holeDiameter and 0.25 for outerDiameter
! Rushabh | Linux Shill
i just wanted to clarify is outerDiameter 0.6 https://github.com/tscircuit/tscircuit-autorouter/blob/df06b51adf6ba8132d239dffe530fb6aa3f36fb2/lib/solvers/ViaPossibilitiesSolver/ViaPossibilitiesSolver.ts#L118 I have no experience of autorouter repo Hey @Techmannih please can you giude me a little 🥺
Seve
Seve•3w ago
huh i guess it is 0.6! the whole diameter is probably 0.2 or 0.15
Techmannih
Techmannih•3w ago
@! Rushabh | Linux Shill in which repos you have done this You need to add them in the props, circuit-json, circuit-to-svg, then in core . Have you done in them?
! Rushabh | Linux Shill
done is props, will do in circuit-json, circuit-to-svg now Thank you 🫡
Techmannih
Techmannih•3w ago
Yes sure if you need any help please ping me
! Rushabh | Linux Shill
i found this in circuit-json outer_diameter: distance.default("0.6mm"), hole_diameter: distance.default("0.25mm"), but autorouter uses 0.6 and 0.3 i just need to change 0.3 to 0.25 right
Techmannih
Techmannih•3w ago
Yes, change them as you needed
Techmannih
Techmannih•3w ago
Great, little bit changes. Look at the comment @! Rushabh | Linux Shill look at this for hole diameter or you just need to confirm
! Rushabh | Linux Shill
i think i need to make some changes in props too, they should also have the default value of 0.6 and 0.3 right? holeDiameter: distance.default(0.6).optional()
Techmannih
Techmannih•3w ago
Which reference are you using for 0.3
Techmannih
Techmannih•3w ago
Yes It should be 0.3
! Rushabh | Linux Shill
https://github.com/tscircuit/props/pull/512 . Wait i think i made a mistake earlier by adding the optional check
Techmannih
Techmannih•3w ago
You don't need to add a new default value in props. You have mentioned the wrong hole diameter here, so I was saying to change them.
! Rushabh | Linux Shill
GPT said outer_diameter: distance.default("0.6mm") The field must exist. If the user does not provide a value, it will be set to "0.6mm". The result will always have a value. outer_diameter: distance.default("0.6mm").optional() The field is optional. If the user omits it, the value will be undefined — not automatically set to "0.6mm". Only if the user provides the field (even empty?) might the default apply when parsing.
Techmannih
Techmannih•3w ago
If there was no default value. Don't be introduced new because we should default from the Circuit-josn
! Rushabh | Linux Shill
in circuit-json, should i add optional() outer_diameter: distance.default("0.6mm"), hole_diameter: distance.default("0.3mm"),`
Techmannih
Techmannih•3w ago
Now you just need to make them optional. Other thing all good Yes Here you need to add default
Techmannih
Techmannih•3w ago
Lgtm
! Rushabh | Linux Shill
so what changes do i need to do in core then
Techmannih
Techmannih•3w ago
wait for merging this one then go for circuit-to-svg
! Rushabh | Linux Shill
🙌 Thank you for guiding
Techmannih
Techmannih•3w ago
Yours welcome. Any time ping me
Techmannih
Techmannih•3w ago
i think you already make them optional??
Techmannih
Techmannih•3w ago
yes, please once can you share the kicad viewer link of that footprint
Techmannih
Techmannih•3w ago
ohh you are changing the width of the footprint I think this doesn't matter, I checked you are calculating for one end to another end till silkscreen Its only effects on the silkscreen
Techmannih
Techmannih•3w ago
Alright if you sure this should be fixed I merged this
! Rushabh | Linux Shill
i did it once it works https://github.com/tscircuit/footprinter/pull/420 i reduced from 4.8 to 4.2 but it was not enough
Techmannih
Techmannih•3w ago
have you checked the body width for the cad model
! Rushabh | Linux Shill
the numbers are not adding up something is off i also make this for myslef to track my prs https://github.com/users/rushabhcodes/projects/4
Techmannih
Techmannih•3w ago
can you check once locally by using bun link nice
Techmannih
Techmannih•3w ago
yes, rishab already approved it now for merge tag seve or dope/arnav
! Rushabh | Linux Shill
Hey i wanted to work on this, can you guide me a little https://github.com/tscircuit/tscircuit/issues/1156 @Techmannih @Seve
Techmannih
Techmannih•3w ago
I am looking into it
! Rushabh | Linux Shill
can you point me to something easy to start with
Techmannih
Techmannih•3w ago
yes, I see your work you are doing great work
! Rushabh | Linux Shill
Shibo showed me earlier but it is too difficult for me https://discord.com/channels/1233487248129921135/1438596884175257774 Any issues i can work on ??
Techmannih
Techmannih•3w ago
try to build boards , building boards = using the product. If we don't use the product, how can we improve it? It is all coding- you code the boards, you code the fixes, you code the features, it's all code. tscircuit is a coding library for coding boards yes you can work on it. tag shibo in that thread, I m sure he will reply always
! Rushabh | Linux Shill
Are there any specific board required
Techmannih
Techmannih•3w ago
https://www.sparkfun.com/sparkfun-samd21-mini-breakout.html try to understand this one. if you need help please ping me
! Rushabh | Linux Shill
i need to add it in this repo right https://github.com/tscircuit/sparkfun-boards
Seve
Seve•3w ago
@! Rushabh | Linux Shill yea adding to the sparkfun boards repo is a good idea, it's good for learning

Did you find this page helpful?