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
9e20800f
Commit
9e20800f
authored
Jul 18, 2012
by
Marco Mattila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix axis offset issue in pcbnew gerber circular interpolation.
parent
9ec6139f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
common_plotGERBER_functions.cpp
common/common_plotGERBER_functions.cpp
+2
-1
No files found.
common/common_plotGERBER_functions.cpp
View file @
9e20800f
...
@@ -293,7 +293,8 @@ void GERBER_PLOTTER::Arc( const wxPoint& aCenter, int aStAngle, int aEndAngle,
...
@@ -293,7 +293,8 @@ void GERBER_PLOTTER::Arc( const wxPoint& aCenter, int aStAngle, int aEndAngle,
end
.
x
=
aCenter
.
x
+
KiROUND
(
aRadius
*
cos
(
DEG2RAD
(
aEndAngle
/
10.0
)
)
);
end
.
x
=
aCenter
.
x
+
KiROUND
(
aRadius
*
cos
(
DEG2RAD
(
aEndAngle
/
10.0
)
)
);
end
.
y
=
aCenter
.
y
-
KiROUND
(
aRadius
*
sin
(
DEG2RAD
(
aEndAngle
/
10.0
)
)
);
end
.
y
=
aCenter
.
y
-
KiROUND
(
aRadius
*
sin
(
DEG2RAD
(
aEndAngle
/
10.0
)
)
);
DPOINT
devEnd
=
userToDeviceCoordinates
(
end
);
DPOINT
devEnd
=
userToDeviceCoordinates
(
end
);
DPOINT
devCenter
=
userToDeviceCoordinates
(
aCenter
-
start
);
DPOINT
devCenter
=
userToDeviceCoordinates
(
aCenter
)
-
userToDeviceCoordinates
(
start
);
fprintf
(
outputFile
,
"G75*
\n
"
);
// Multiquadrant mode
fprintf
(
outputFile
,
"G75*
\n
"
);
// Multiquadrant mode
if
(
aStAngle
<
aEndAngle
)
if
(
aStAngle
<
aEndAngle
)
...
...
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