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
b5c64fd7
Commit
b5c64fd7
authored
Jan 25, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew:solved: bug in autorouter.
parent
69ce4a2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
solve.cpp
pcbnew/solve.cpp
+5
-3
No files found.
pcbnew/solve.cpp
View file @
b5c64fd7
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "cell.h"
#include "cell.h"
/* Routines definies ici : */
/* Routines definies ici : */
static
int
Route_1_Trace
(
WinEDA_PcbFrame
*
pcbframe
,
wxDC
*
DC
,
int
two_sides
,
int
row_source
,
static
int
Autoroute_One_Track
(
WinEDA_PcbFrame
*
pcbframe
,
wxDC
*
DC
,
int
two_sides
,
int
row_source
,
int
col_source
,
int
col_source
,
int
row_target
,
int
col_target
,
CHEVELU
*
pt_chevelu
);
int
row_target
,
int
col_target
,
CHEVELU
*
pt_chevelu
);
static
int
Retrace
(
WinEDA_PcbFrame
*
pcbframe
,
wxDC
*
DC
,
int
,
int
,
int
,
int
,
int
,
int
net_code
);
static
int
Retrace
(
WinEDA_PcbFrame
*
pcbframe
,
wxDC
*
DC
,
int
,
int
,
int
,
int
,
int
,
int
net_code
);
...
@@ -263,7 +263,7 @@ int WinEDA_PcbFrame::Solve( wxDC* DC, int two_sides )
...
@@ -263,7 +263,7 @@ int WinEDA_PcbFrame::Solve( wxDC* DC, int two_sides )
pt_cur_ch
->
pad_start
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
pt_cur_ch
->
pad_start
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
pt_cur_ch
->
pad_end
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
pt_cur_ch
->
pad_end
->
Draw
(
DrawPanel
,
DC
,
GR_OR
|
GR_SURBRILL
);
success
=
Route_1_Trace
(
this
,
DC
,
two_sides
,
row_source
,
col_source
,
success
=
Autoroute_One_Track
(
this
,
DC
,
two_sides
,
row_source
,
col_source
,
row_target
,
col_target
,
pt_cur_ch
);
row_target
,
col_target
,
pt_cur_ch
);
switch
(
success
)
switch
(
success
)
...
@@ -308,7 +308,7 @@ int WinEDA_PcbFrame::Solve( wxDC* DC, int two_sides )
...
@@ -308,7 +308,7 @@ int WinEDA_PcbFrame::Solve( wxDC* DC, int two_sides )
/**********************************************************************************/
/**********************************************************************************/
static
int
Route_1_Trace
(
WinEDA_PcbFrame
*
pcbframe
,
wxDC
*
DC
,
static
int
Autoroute_One_Track
(
WinEDA_PcbFrame
*
pcbframe
,
wxDC
*
DC
,
int
two_sides
,
int
row_source
,
int
col_source
,
int
two_sides
,
int
row_source
,
int
col_source
,
int
row_target
,
int
col_target
,
CHEVELU
*
pt_chevelu
)
int
row_target
,
int
col_target
,
CHEVELU
*
pt_chevelu
)
/**********************************************************************************/
/**********************************************************************************/
...
@@ -347,6 +347,8 @@ static int Route_1_Trace( WinEDA_PcbFrame* pcbframe, wxDC* DC,
...
@@ -347,6 +347,8 @@ static int Route_1_Trace( WinEDA_PcbFrame* pcbframe, wxDC* DC,
int
start_mask_layer
=
0
;
int
start_mask_layer
=
0
;
wxString
msg
;
wxString
msg
;
wxBusyCursor
dummy_cursor
;
// Set an hourglass cursor while routing a track
result
=
NOSUCCESS
;
result
=
NOSUCCESS
;
marge
=
g_DesignSettings
.
m_TrackClearence
+
(
g_DesignSettings
.
m_CurrentTrackWidth
/
2
);
marge
=
g_DesignSettings
.
m_TrackClearence
+
(
g_DesignSettings
.
m_CurrentTrackWidth
/
2
);
...
...
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