Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a0c80381
Commit
a0c80381
authored
Apr 11, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve comments in specctra stuff
parent
36dac0c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
specctra_export.cpp
pcbnew/specctra_export.cpp
+6
-4
specctra_import.cpp
pcbnew/specctra_import.cpp
+1
-3
No files found.
pcbnew/specctra_export.cpp
View file @
a0c80381
...
...
@@ -170,7 +170,7 @@ static inline double scale( int kicadDist )
{
#if defined(USE_PCBNEW_NANOMETRES)
// nanometers to um
// nanometers to um
return
kicadDist
/
1000.0
;
// nanometers to mils
...
...
@@ -1037,12 +1037,14 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
{
#if defined(USE_PCBNEW_NANOMETRES)
// tell freerouter about centi-mil
// tell freerouter to use "tenths of micrometers",
// which is 100 nm resolution. Possibly more resolution is possible
// in freerouter, but it would need testing.
pcb
->
unit
->
units
=
T_um
;
pcb
->
resolution
->
units
=
T_um
;
pcb
->
resolution
->
value
=
10
;
pcb
->
resolution
->
value
=
10
;
// tenths of a um
// pcb->resolution->value = 1000; // "thousandths of a um" (i.e. "nm")
#else
pcb
->
unit
->
units
=
T_mil
;
...
...
pcbnew/specctra_import.cpp
View file @
a0c80381
...
...
@@ -145,11 +145,10 @@ namespace DSN {
static
int
scale
(
double
distance
,
UNIT_RES
*
aResolution
)
{
double
resValue
=
aResolution
->
GetValue
();
double
factor
;
#if defined(USE_PCBNEW_NANOMETRES)
double
factor
;
switch
(
aResolution
->
GetEngUnits
()
)
{
default
:
...
...
@@ -173,7 +172,6 @@ static int scale( double distance, UNIT_RES* aResolution )
int
ret
=
wxRound
(
factor
*
distance
/
resValue
);
#else
double
factor
;
// multiply this times session value to get mils for KiCad.
switch
(
aResolution
->
GetEngUnits
()
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment