This moves kicad_rs and the new function library kicad_functions into a common Cargo workspace to facilitate dependency version sharing as well as make running stuff like cargo fmt for the project easier.
[x] Include external variables (I have an idea for how to do this, will come in a future PR: #17)
Continuation of #14, ticking one more box in the support list there. The last commit https://github.com/racklet/electronics-prototyping/commit/9a9a43f03eb13ee4db4a37f15c36dfd0038fd917 is just test data for evaluating the voltage divider and may be removed before merging. That test data configuration is identical to what was passed to ICCC for the BD9E DC-DC converter, and this Rust code does output the same optimal resistance values, so it should be working correctly.
This moves
kicad_rs
and the new function librarykicad_functions
into a common Cargo workspace to facilitate dependency version sharing as well as make running stuff likecargo fmt
for the project easier.The new voltage divider function is based on https://github.com/trebinor/resistor-calc, which I had to fork and modify a bit to get to compile without its own expression evaluator. PR tracking upstreaming here: https://github.com/trebinor/resistor-calc/pull/4.
Support list for
voltage_divider
:Continuation of #14, ticking one more box in the support list there. The last commit https://github.com/racklet/electronics-prototyping/commit/9a9a43f03eb13ee4db4a37f15c36dfd0038fd917 is just test data for evaluating the voltage divider and may be removed before merging. That test data configuration is identical to what was passed to ICCC for the BD9E DC-DC converter, and this Rust code does output the same optimal resistance values, so it should be working correctly.
cc @luxas @chiplet