Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular blend arc alpha #2

Closed
wants to merge 221 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
6071866
Trajectory planner overhaul for lookahead
robEllenberg Oct 25, 2013
17d3326
Prototype pass by constant pointer for posemath.
robEllenberg Oct 25, 2013
234ffd1
Added const specifiers and misc fixes.
robEllenberg Oct 25, 2013
b0d345b
Draft conversion of pmCartXXX functions to pass by constant pointer
robEllenberg Oct 25, 2013
14bf366
Converted most quaternon functions to pass by constant pointer to con…
robEllenberg Oct 25, 2013
b5adf3f
Converted remainder of posemath to use constant pointer to constant v…
robEllenberg Oct 25, 2013
6fc0af3
Fixed pmLineInit
robEllenberg Oct 27, 2013
ca3cc60
Stripped out remaining PmPose and PmLine references in TP.
robEllenberg Oct 27, 2013
991b00b
Minor misc. conversions to pointer input / output
robEllenberg Oct 28, 2013
c8462de
Whitespace fixes
robEllenberg Oct 28, 2013
853faa6
First cut of 3D arc calculation.
robEllenberg Oct 25, 2013
be80680
Fixed a bunch of dumb errors
robEllenberg Oct 27, 2013
0faa6e8
Added debug info and fixed some obvious errors.
robEllenberg Oct 27, 2013
6a3c640
Working blend arcs with zero final velocity.
robEllenberg Oct 28, 2013
05c0151
Fixed tight corner and small angle case
robEllenberg Oct 28, 2013
5f70941
Added some test NC code for blend comparison.
robEllenberg Oct 28, 2013
5a95ba2
Fixed typo in teleop data struct
robEllenberg Oct 28, 2013
e2fe353
Actually fixed angle edge cases.
robEllenberg Oct 28, 2013
809bfcb
Really ugly but working optimization
robEllenberg Oct 29, 2013
aff7fc5
Added simple segment pruning
robEllenberg Oct 29, 2013
ce018e9
Moved verbose debug messages to a macro to allow conditional compiling.
robEllenberg Oct 30, 2013
b9cae7d
Added cscope to Makefile
robEllenberg Oct 30, 2013
a90f111
added comments and moved velocity max check
robEllenberg Oct 30, 2013
fd58d2b
Refactored blend stuff into separate function
robEllenberg Oct 30, 2013
b3b4a97
Fixed a bunch of bugs
robEllenberg Nov 4, 2013
797c5ed
Built on 10.04 RTAPI
robEllenberg Nov 4, 2013
1f2f985
Minor fixes for kernel space vs. user space
robEllenberg Nov 4, 2013
1d4fd39
Cosmetic changes for consistent style, comments
robEllenberg Nov 4, 2013
96412cc
Further cleanup, no major functional changes
robEllenberg Nov 4, 2013
7a3f886
Fixed style of function defitions
robEllenberg Nov 4, 2013
b6495ca
More rearrangement of constants and comments
robEllenberg Nov 4, 2013
09866d4
Added test code and config
robEllenberg Nov 7, 2013
5a533d4
Testing in progress for feed override issues.
robEllenberg Nov 5, 2013
2fd9c1d
Attempt to fix duplicate ID's
robEllenberg Nov 5, 2013
6bd97d9
Fixed override issue due to improper enable
robEllenberg Nov 7, 2013
5d8ca59
Updated simulation config for 10kHz to test speed
robEllenberg Nov 7, 2013
66b5f03
Moved spindle data within tp struct
robEllenberg Nov 7, 2013
5621fad
Reverted to copy by value in some places
robEllenberg Nov 7, 2013
4e15824
Added additional debug output for arc creation
robEllenberg Nov 7, 2013
5f7e401
Potential fix for "sawtooth" effect
robEllenberg Nov 8, 2013
330eab9
Better fall-back to parabolic blends
robEllenberg Nov 8, 2013
7074891
Added extra check in blend velocity calculation
robEllenberg Nov 8, 2013
19e9573
Added acceleration scale factor for blending
robEllenberg Nov 8, 2013
734463c
Switch to debug print
robEllenberg Nov 8, 2013
3349b64
Major refactor of blending code to isolate steps
robEllenberg Nov 8, 2013
8727b5f
Fixed parabolic blending bug introduced previously
robEllenberg Nov 9, 2013
3dfeec7
Misc refactoring and cleanup to isolate blend stuff
robEllenberg Nov 9, 2013
089b0b8
Closer to working, but we don't catch slow feed rate errors
robEllenberg Nov 9, 2013
0d50885
Smooth performance improvement
robEllenberg Nov 10, 2013
1df7585
Works on arc example but stops on LCNC axis example
robEllenberg Nov 10, 2013
b57220a
Not making much difference
robEllenberg Nov 10, 2013
31922a7
Fixed GUI issue, but now acceleration spikes are back
robEllenberg Nov 10, 2013
b453d81
Tracked down acceleration glitch to resetting of current velocity
robEllenberg Nov 10, 2013
dbaea86
Fixed a few arc blend bugs
robEllenberg Nov 11, 2013
9e805eb
Added elementwise PmCartesian multiplication
robEllenberg Nov 11, 2013
114ec78
Fixed acceleration errors due to inf-norm
robEllenberg Nov 11, 2013
9cb9950
Added missing test files and tweaked preprocessor settings
robEllenberg Nov 12, 2013
42d1313
Added acc test config with non-uniform axis max accels
robEllenberg Nov 12, 2013
b756127
minor polish in prep for investigation
robEllenberg Nov 12, 2013
a975bd9
Added debug flags and position debug output
robEllenberg Nov 13, 2013
ada745c
One solution, make term cond set accel scale
robEllenberg Nov 14, 2013
8f72b57
Better behavior with redesigned accel function and lower blend ratio
robEllenberg Nov 14, 2013
c21d714
Added checks for sample rate limits and simpler fall back
robEllenberg Nov 14, 2013
b8f3d48
Code runs but isn't useful
robEllenberg Nov 14, 2013
21d1ef3
Much smoother output
robEllenberg Nov 14, 2013
1c73bf0
Fixed formula
robEllenberg Nov 14, 2013
98be591
Increased lookahead and added crude smoothing
robEllenberg Nov 14, 2013
f44222b
Experimental smoothing that doesn't really work. Acceleration is too …
robEllenberg Nov 14, 2013
e54c4f8
Simple fix to termination error due to overshoot
robEllenberg Nov 14, 2013
760e238
not quite fixed...
robEllenberg Nov 14, 2013
471d285
Fixed a segfault introduced by prev_tc
robEllenberg Nov 14, 2013
cf8599b
Optimization overhaul
robEllenberg Nov 14, 2013
634da3c
Seems to give better performance on arc-test
robEllenberg Nov 14, 2013
35c537d
Shouldn't have any ripple but still does
robEllenberg Nov 14, 2013
12219c3
Seems to be within constraints and as smooth as we can hope for on ar…
robEllenberg Nov 14, 2013
4e04f46
Added end point comparison to identify acceleration spikes
robEllenberg Nov 14, 2013
6d525d1
Added acceleration constraints to reduce spikes between segments
robEllenberg Nov 16, 2013
2f65f55
Added normal maxvel for blend arcs
robEllenberg Nov 16, 2013
57491b5
Added a target_vel flag and better velocity smoothing
robEllenberg Nov 16, 2013
821f20e
Moved angle check until after we confirm line-line pair
robEllenberg Nov 16, 2013
20d3fe3
Fixed optimization bug
robEllenberg Nov 17, 2013
1ac8b45
Added a simple cutoff to disable smoothing
robEllenberg Nov 17, 2013
f0e5b3e
Groundwork for feed override handling
robEllenberg Nov 19, 2013
9a7a41d
Tried constant acceleration from previous step, but this tends to ove…
robEllenberg Nov 19, 2013
58a0ff6
Assuming zero acceleration is a bit smoother, though not the perfect …
robEllenberg Nov 19, 2013
855ab02
Forcing the last desired velocity to finalvel has the same effect as …
robEllenberg Nov 19, 2013
49e1d6a
Removed islast from TC_STRUCT since it's not needed anymore
robEllenberg Nov 19, 2013
9a5e0d3
Refactored optimization function
robEllenberg Nov 19, 2013
714b486
reduced optimization's speed step by 1/2 to combat overspeed due to o…
robEllenberg Nov 19, 2013
91b1135
disabled debug flags for burn-in testing
robEllenberg Nov 19, 2013
cea524d
partial fix of blends with rapids
robEllenberg Nov 19, 2013
6b3fc7c
prep work to fix 3d chips issue with Z accel
robEllenberg Nov 19, 2013
9523575
Added final velocity override for intermediate conditions
robEllenberg Nov 19, 2013
a481892
Tentative fix for single-stepping
robEllenberg Nov 20, 2013
1395ab8
scratchwork towards exact stop algorithm
robEllenberg Nov 21, 2013
19a9cb7
works great with no varying feed override, but moving feed override c…
robEllenberg Nov 21, 2013
c493c08
Works beautifully on the spiral arc example
robEllenberg Nov 21, 2013
b567e28
Confirmed that we need 2 cycles per segment minimum
robEllenberg Nov 21, 2013
40d0f70
Proved that original formulas were correct with straight line example
robEllenberg Nov 21, 2013
dd3858f
Hunting bugs with feed override, simply scaling down final velocity i…
robEllenberg Nov 21, 2013
bbd606b
reverted to 1.0 max feed override
robEllenberg Nov 21, 2013
aa308f4
Added test for trajectory planner
robEllenberg Nov 22, 2013
3aa109f
Cleaned up TP test case
robEllenberg Nov 22, 2013
85dca42
Updated test.sh to auto-run a program
robEllenberg Nov 22, 2013
4dfa3e2
Moved tcSetTermCond to tc.c
robEllenberg Nov 24, 2013
dc9947a
Removed STATIC macro
robEllenberg Nov 24, 2013
d216217
Purged block comments with preprocessor macros
robEllenberg Nov 24, 2013
77cefad
Used memset for tpInitializeNewSegment
robEllenberg Nov 24, 2013
57906a6
Reformatted saturate to have brackets instead of single line if's
robEllenberg Nov 24, 2013
f6bde75
Renamed emcmotDebug queue to tp to match naming convention
robEllenberg Nov 24, 2013
340ff08
Purged dangling whitespace and cleaned up comments
robEllenberg Nov 24, 2013
43ac25d
Tried to move stuff around but something's broken
robEllenberg Nov 25, 2013
cc49d39
Revert "Used memset for tpInitializeNewSegment"
robEllenberg Nov 25, 2013
92a2689
Added DEBUG flags to control TP debug from command line
robEllenberg Nov 25, 2013
78ad457
Misc. style cleanup
robEllenberg Nov 25, 2013
81e3d52
Bugfix for single-stepping
robEllenberg Nov 25, 2013
cccabd6
Updated test runs
robEllenberg Nov 25, 2013
c8afbe5
Fixed a stupid bug where rapid traversing broke pause
robEllenberg Nov 25, 2013
417bacc
Moved syncdio to TP_STRUCT
robEllenberg Nov 25, 2013
463c3b1
Revert "Removed STATIC macro"
robEllenberg Nov 25, 2013
2c611a2
Tweaks to arc test
robEllenberg Nov 25, 2013
88cbada
Profiling fixes and speed improvement for feed override
robEllenberg Nov 26, 2013
8adf7f3
Initial update to parabolic blend vel, small acceleration spikes noted
robEllenberg Nov 26, 2013
c32030c
Updated test case and additional NC files
robEllenberg Nov 26, 2013
4d2646f
Fixed blend velocity scaling to be symmetrical
robEllenberg Nov 26, 2013
3f0930d
Changes to accel scaling, need to test these with arc blending as well
robEllenberg Nov 27, 2013
6685c27
Added experimental fix for arc acceleration during parabolic blending
robEllenberg Nov 27, 2013
2a5f9ba
Added constants for acc ratio
robEllenberg Nov 27, 2013
0c990c9
Fixes to include split-time checking properly during parabolic blending
robEllenberg Nov 27, 2013
805bcda
Reenabled more aggressive blend velocity, initial tests show no viola…
robEllenberg Nov 27, 2013
614fe3d
Added bulk testing script
robEllenberg Nov 27, 2013
0a367b9
Possible fix for parabolic blends with circular arcs
robEllenberg Nov 27, 2013
311dae6
Added missing test files to run all tests
robEllenberg Nov 27, 2013
a46e11b
Trying to fix hangups in unattended tests
robEllenberg Nov 28, 2013
cfbf56e
Removed spindle start/stop from kinematics test G code
robEllenberg Nov 28, 2013
da4ae42
Performance improvements
robEllenberg Nov 29, 2013
7645fae
Cleaned up old code
robEllenberg Nov 29, 2013
49bf68f
Formula update and discriminant check for blend arc length
robEllenberg Nov 30, 2013
c7e8956
Added test scripts and updates
robEllenberg Dec 1, 2013
23d2c8f
Added experimental tangent detection for circles and helices
robEllenberg Dec 1, 2013
09eaee8
Small fixes for optimization and rare target overruns
robEllenberg Dec 1, 2013
12215ea
Partial fix for acceleration spikes at exact stop
robEllenberg Dec 2, 2013
bd140e3
Temporary revert of parabolic arc behavior for debugging
robEllenberg Dec 2, 2013
b4c40c0
Tracking down occasional bad tangent
robEllenberg Dec 2, 2013
07db3bd
Fix for tangent glitch with circular arcs
robEllenberg Dec 2, 2013
06b8708
Added error codes for invalid motion type
robEllenberg Dec 2, 2013
1af0e36
Tangent optimization fix and debug build for sam
robEllenberg Dec 4, 2013
da254d5
Added check for bad initialization for Line9 and Circle9 in TP
robEllenberg Dec 5, 2013
05746ed
Small fix to prevent div by zero
robEllenberg Dec 5, 2013
ee1f531
Cleanup and added check for ABCUVW motion in tangent function
robEllenberg Dec 5, 2013
9d8ddbb
Optimizations for blend arc creation, initial draft
robEllenberg Dec 8, 2013
6bd0e4a
Completed optimization on blend arc creation
robEllenberg Dec 9, 2013
5696bf3
Reorganized blend arc functions and cleaned up headers
robEllenberg Dec 9, 2013
16c2803
Fixed center distance calculation for blend arc
robEllenberg Dec 9, 2013
5d141b8
Added lazy optimization option
robEllenberg Dec 9, 2013
f5041a6
Added split-cycle check to parabolic blends to eliminate acceleration…
robEllenberg Dec 9, 2013
0dee696
New movement output
robEllenberg Dec 9, 2013
32da0a4
Added debug output
robEllenberg Dec 9, 2013
fb53b36
Fixed parabolic velocity comparison using law of cosines
robEllenberg Dec 9, 2013
3a6a548
Added exception for overflow in decode_dmesg
robEllenberg Dec 9, 2013
e812133
Added extra debug messages to pin down RT crash
robEllenberg Dec 9, 2013
dd23198
Added tentative check for small values in split cycle calculation
robEllenberg Dec 10, 2013
d1e3df5
Possible fix for overruns
robEllenberg Dec 10, 2013
5a7267a
Rearranged code slightly.
robEllenberg Dec 10, 2013
4cf2585
Fix for build issue without debug flags
robEllenberg Dec 10, 2013
7510cc0
Simple rearrangement to eliminate duplicate calls to toggle DIOs and …
robEllenberg Dec 10, 2013
c7fd358
Overhaul of tc runcycle to eliminate sqrt of small numbers
robEllenberg Dec 10, 2013
f8b538a
Replaced 'done' flag with 'splitting' for clarity
robEllenberg Dec 10, 2013
36e7cff
Refactored common code for cycle updates to reduce chance of bugs bet…
robEllenberg Dec 10, 2013
c2f4379
Stricter tolerances eliminate acceleration overages
robEllenberg Dec 11, 2013
7503b2f
Simplifications to final velocity and optimization calculations
robEllenberg Dec 11, 2013
4b46e5e
Working according to position log
robEllenberg Dec 12, 2013
1fd9a58
Added depth output and removed redundant field
robEllenberg Dec 13, 2013
54cf3af
Fixed some slowdowns when switching between tangent and parabolic blends
robEllenberg Dec 13, 2013
7934c48
Trying more aggressive parabolic blending again
robEllenberg Dec 13, 2013
6a986b6
Debug output for optimization
robEllenberg Dec 13, 2013
9f5c806
Added optimization to addcircle but this didn't cure the dips
robEllenberg Dec 13, 2013
92d5ab4
Fixed the optimization issue finally because the optimization was bei…
robEllenberg Dec 13, 2013
763a31d
Fix for spindle atspeed hiccup
robEllenberg Dec 15, 2013
06715f1
Fix for tangent arc issue that sam found
robEllenberg Dec 15, 2013
f1368d0
Preparations for acceleration-dependent tangent epsilon:
robEllenberg Dec 15, 2013
c03cdc9
Scratchwork for ini file parameters
robEllenberg Dec 16, 2013
d941caa
Possible fix for overrun due to spinup?
robEllenberg Dec 16, 2013
25e8fa8
Fixed speed overrun due to at-speed 2 moves ahead
robEllenberg Dec 17, 2013
faeff53
Fix for acceleration violation due to tangent-parabolic transition
robEllenberg Dec 17, 2013
d122f1e
Fixed blend velocity calculation to properly estimate parabolic vs. t…
robEllenberg Dec 17, 2013
15d865b
incorporated Sam's cycle time measurement XML
robEllenberg Dec 17, 2013
3ddc07e
Merge branch 'hotfix/acceleration-violations' into circular-blend-arc…
robEllenberg Dec 17, 2013
c5494b9
Documentation and spacing update
robEllenberg Dec 17, 2013
a709f6d
Documentation for tc.c
robEllenberg Dec 17, 2013
155d1df
Merge branch 'feature/documentation' into circular-blend-arc-alpha
robEllenberg Dec 17, 2013
31dbbec
Fix for spindle sync issue
robEllenberg Dec 17, 2013
bf741f4
Attempt to disable machine on constraint failure
robEllenberg Dec 17, 2013
ad4fb1b
Disable on violation and limit sampler output
robEllenberg Dec 17, 2013
a1391b7
Merge branch 'feature/hal-test-tweaks' into circular-blend-arc-alpha
robEllenberg Dec 17, 2013
5e2dddc
Only allow fast parabolic blends for line-line intersections
robEllenberg Dec 18, 2013
9ba44b8
Tentative fix for acceleration issue due to tangent velocity
robEllenberg Dec 19, 2013
54f10c9
Fixed slowdown introduced by previous fix in arc segments
robEllenberg Dec 21, 2013
a7cb8f4
Added ini settings (squash)
robEllenberg Dec 23, 2013
3f0c527
Naming fix for fallback
robEllenberg Dec 23, 2013
d8c0a39
Made Naive CAM default tolerance 0
robEllenberg Dec 26, 2013
c30ef3e
Added gitignore entries
robEllenberg Dec 26, 2013
89ad006
Trailing whitespace and formatting cleanup
robEllenberg Dec 26, 2013
a458001
removed redundant argument in tpAddSegmentToQueue
robEllenberg Dec 26, 2013
0c13743
Cleanup of old constants and check for optimization depth.
robEllenberg Dec 27, 2013
a981eea
Trailing whitespace fixes
robEllenberg Dec 28, 2013
1558e7b
Overhaul of TP functions to reduce nesting
robEllenberg Dec 28, 2013
40fcee1
Renamed function to match naming convention
robEllenberg Dec 28, 2013
7709c21
Merge branch 'feature/blend-refactor2' into circular-blend-arc-alpha
robEllenberg Dec 28, 2013
727d007
Cleanup and reorganization in a few spots
robEllenberg Dec 29, 2013
4f03f90
Removed nomimal length
robEllenberg Dec 29, 2013
bdcc798
Refactoring in CheckEndCondition
robEllenberg Dec 29, 2013
3d5b558
Misc comments and minor reordering for aesthetics
robEllenberg Dec 29, 2013
9f6e462
Experimental fix for last segment exact stop (doesn't work)
robEllenberg Dec 29, 2013
e833178
Removed displacement and final_actual_vel as redundant
robEllenberg Dec 29, 2013
46bb76d
Merge branch 'feature/refactor-misc' into circular-blend-arc-alpha
robEllenberg Dec 29, 2013
4be7890
Fixes for RT build and acceleration overages.
robEllenberg Dec 31, 2013
689e5cb
Formatting cleanup
robEllenberg Dec 31, 2013
2979dcc
Refactor of tolerance check
robEllenberg Jan 5, 2014
1c58024
Added 60 deg. minimum angle for circular arcs
robEllenberg Jan 5, 2014
60b2c60
Added tolerance restriction to arc blends which roughly matches parab…
robEllenberg Jan 5, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -29,3 +29,11 @@ docs/html/drivers
/docs/src/source-highlight/local
lib/python/gremlin.py
lib/python/touchy
# Miscellaneous generated files (Rob)
cscope
cscope.*
*.kdev*
oprofile*
*.log
position.txt
*.9
209 changes: 209 additions & 0 deletions configs/sim/axis/acc_test.ini
@@ -0,0 +1,209 @@
# EMC controller parameters for a simulated machine.

# General note: Comments can either be preceded with a # or ; - either is
# acceptable, although # is in keeping with most linux config files.

# General section -------------------------------------------------------------
[EMC]

# Version of this INI file
VERSION = $Revision$

# Name of machine, for use with display, etc.
MACHINE = LinuxCNC-HAL-SIM-AXIS

# Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
;DEBUG = 0x7FFFFFFF
DEBUG = 0

# Sections for display options ------------------------------------------------
[DISPLAY]

# Name of display program, e.g., xemc
DISPLAY = axis

# Cycle time, in seconds, that display will sleep between polls
CYCLE_TIME = 0.100

# Path to help file
HELP_FILE = doc/help.txt

# Initial display setting for position, RELATIVE or MACHINE
POSITION_OFFSET = RELATIVE

# Initial display setting for position, COMMANDED or ACTUAL
POSITION_FEEDBACK = ACTUAL

# Highest value that will be allowed for feed override, 1.0 = 100%
MAX_FEED_OVERRIDE = 1.2
MAX_SPINDLE_OVERRIDE = 1.0

MAX_LINEAR_VELOCITY = 12
DEFAULT_LINEAR_VELOCITY = .25
# Prefix to be used
PROGRAM_PREFIX = ../../../nc_files/

# Introductory graphic
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5

EDITOR = gedit
TOOL_EDITOR = tooledit

INCREMENTS = 1 in, 0.1 in, 10 mil, 1 mil, 1mm, .1mm, 1/8000 in

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script

png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

# Task controller section -----------------------------------------------------
[TASK]

# Name of task controller program, e.g., milltask
TASK = milltask

# Cycle time, in seconds, that task controller will sleep between polls
CYCLE_TIME = 0.001

# Part program interpreter section --------------------------------------------
[RS274NGC]

# File containing interpreter variables
PARAMETER_FILE = sim.var

# Motion control section ------------------------------------------------------
[EMCMOT]

EMCMOT = motmod

# Timeout for comm to emcmot, in seconds
COMM_TIMEOUT = 1.0

# Interval between tries to emcmot, in seconds
COMM_WAIT = 0.010

# BASE_PERIOD is unused in this configuration but specified in core_sim.hal
BASE_PERIOD = 0
# Servo task period, in nano-seconds
SERVO_PERIOD = 1000000

# Hardware Abstraction Layer section --------------------------------------------------
[HAL]

# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
#

# list of hal config files to run through halcmd
# files are executed in the order in which they appear
HALFILE = core_sim.hal
HALFILE = axis_manualtoolchange.hal
HALFILE = simulated_home.hal

# list of halcmd commands to execute
# commands are executed in the order in which they appear
#HALCMD = save neta

# Single file that is executed after the GUI has started. Only supported by
# AXIS at this time (only AXIS creates a HAL component of its own)
#POSTGUI_HALFILE = test_postgui.hal

HALUI = halui

# Trajectory planner section --------------------------------------------------
[TRAJ]

AXES = 3
COORDINATES = X Y Z
HOME = 0 0 0
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 1.2
POSITION_FILE = position.txt
MAX_LINEAR_VELOCITY = 12
# Axes sections ---------------------------------------------------------------

# First axis
[AXIS_0]

TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 8.3333
MAX_ACCELERATION = 40
BACKLASH = 0.000
INPUT_SCALE = 2000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -40.0
MAX_LIMIT = 40.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1
HOME_IS_SHARED = 1

# Second axis
[AXIS_1]

TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 8.3333
MAX_ACCELERATION = 30
BACKLASH = 0.000
INPUT_SCALE = 2000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -40.0
MAX_LIMIT = 40.0
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1

# Third axis
[AXIS_2]

TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 8.333333
MAX_ACCELERATION = 20
BACKLASH = 0.0
INPUT_SCALE = 2000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0001
FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 1.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 0
HOME_IS_SHARED = 1

# section for main IO controller parameters -----------------------------------
[EMCIO]

# Name of IO controller program, e.g., io
EMCIO = io

# cycle time, in seconds
CYCLE_TIME = 0.100

# tool table file
TOOL_TABLE = sim.tbl
TOOL_CHANGE_POSITION = 0 0 0
TOOL_CHANGE_QUILL_UP = 1
2 changes: 1 addition & 1 deletion configs/sim/axis/axis.ini
Expand Up @@ -38,7 +38,7 @@ POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
MAX_SPINDLE_OVERRIDE = 1.0

MAX_LINEAR_VELOCITY = 1.2
MAX_LINEAR_VELOCITY = 5
DEFAULT_LINEAR_VELOCITY = .25
# Prefix to be used
PROGRAM_PREFIX = ../../../nc_files/
Expand Down