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
7ceb3d11
Commit
7ceb3d11
authored
Feb 04, 2013
by
Andreas Beutling
Committed by
Dick Hollenbeck
Feb 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some errors in common_plotHPGL_functions.cpp
parent
619125f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
common_plotHPGL_functions.cpp
common/common_plotHPGL_functions.cpp
+7
-5
No files found.
common/common_plotHPGL_functions.cpp
View file @
7ceb3d11
...
@@ -393,14 +393,16 @@ void HPGL_PLOTTER::Arc( const wxPoint& centre, int StAngle, int EndAngle, int ra
...
@@ -393,14 +393,16 @@ void HPGL_PLOTTER::Arc( const wxPoint& centre, int StAngle, int EndAngle, int ra
DPOINT
centre_dev
=
userToDeviceCoordinates
(
centre
);
DPOINT
centre_dev
=
userToDeviceCoordinates
(
centre
);
if
(
plotMirror
)
if
(
plotMirror
)
angle
=
(
StAngle
-
EndAngle
)
/
10.0
;
angle
=
StAngle
-
EndAngle
;
else
else
angle
=
(
EndAngle
-
StAngle
)
/
10.0
;
angle
=
EndAngle
-
StAngle
;
NORMALIZE_ANGLE_180
(
angle
);
angle
/=
10
;
// Calculate start point,
// Calculate start point,
wxPoint
cmap
;
wxPoint
cmap
;
cmap
.
x
=
(
int
)
(
centre
.
x
+
(
radius
*
cos
(
RAD2DEG
(
StAngle
/
10.0
)
)
)
);
cmap
.
x
=
int
(
centre
.
x
+
(
radius
*
cos
(
DEG2RAD
(
StAngle
/
10.0
)
)
)
);
cmap
.
y
=
(
int
)
(
centre
.
y
-
(
radius
*
sin
(
RAD2DEG
(
StAngle
/
10.0
)
)
)
);
cmap
.
y
=
int
(
centre
.
y
-
(
radius
*
sin
(
DEG2RAD
(
StAngle
/
10.0
)
)
)
);
DPOINT
cmap_dev
=
userToDeviceCoordinates
(
cmap
);
DPOINT
cmap_dev
=
userToDeviceCoordinates
(
cmap
);
fprintf
(
outputFile
,
fprintf
(
outputFile
,
...
@@ -478,7 +480,7 @@ void HPGL_PLOTTER::FlashPadCircle( const wxPoint& pos, int diametre,
...
@@ -478,7 +480,7 @@ void HPGL_PLOTTER::FlashPadCircle( const wxPoint& pos, int diametre,
double
rsize
=
userToDeviceSize
(
radius
);
double
rsize
=
userToDeviceSize
(
radius
);
fprintf
(
outputFile
,
"PA %.0f,%.0f
d
;CI %.0f;
\n
"
,
fprintf
(
outputFile
,
"PA %.0f,%.0f;CI %.0f;
\n
"
,
pos_dev
.
x
,
pos_dev
.
y
,
rsize
);
pos_dev
.
x
,
pos_dev
.
y
,
rsize
);
if
(
trace_mode
==
FILLED
)
// Plot in filled mode.
if
(
trace_mode
==
FILLED
)
// Plot in filled mode.
...
...
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