Commit Graph

543 Commits

Author SHA1 Message Date
Sonny Jeon
8a10654b1c New stepper subsystem bug fixes.
- New stepper algorithm with the new optimized planner seems to be
working nearly twice as fast as the previous algorithm.

- For one, the planner computation overhead is probably a fraction of
what it used to be with the worst case being about half still.

- Secondly, anytime the planner plans back to the first executing
block, it no longer overwrites the block conditions and allows it to
complete without lost steps. So no matter if the streams slows, the
protected planner should keep the steppers moving without risk of lost
steps (although this still needs to be tested thoroughly and may
audibly sound weird when this happens.)

- It now seems that the bottleneck is the serial baudrate (which is
good!)
2013-10-12 10:35:26 -06:00
Sonny Jeon
805f0f219c Protected buffer works! Vast improvements to planner efficiency. Many things still broken with overhaul.
Development push. Lots still broken.

- Protected planner concept works! This is a critical precursor to
enabling feedrate overrides in allowing the planner buffer and the
stepper execution operate atomically. This is done through a
intermediary segment buffer.

- Still lots of work to be done, as this was a complete overhaul of the
planner and stepper subsystems. The code can be cleaned up quite a bit,
re-enabling some of the broken features like feed holds, and finishing
up some of the concepts

- Pushed some of the fixes from the master and edge branch to here, as
this will likely replace the edge branch when done.
2013-10-09 09:33:22 -06:00
Sonny Jeon
471a45a1b9 Merge pull request #263 from 0xPIT/master
remove mcu argument for avr-size in makefile as it is not present in GNU...
2013-08-25 11:08:08 -07:00
0xPIT
24280f95a5 remove mcu argument for avr-size in makefile as it is not present in GNU Binutils 2.22 2013-08-25 14:54:10 +02:00
Sonny Jeon
0894183991 Pin map definition cleanup. 2013-08-20 20:05:16 -06:00
Sonny Jeon
e24e67ffe2 Processor-independent pin mapping feature.
- Cleaned up and organized pin mapping concept by @elmom.

- pin_map.h allows for user-supplied pin mapping and port vector
definitions in a centralized file. With more processor types, more
definitions could be added.
2013-08-19 15:07:47 -06:00
Sonny Jeon
b2a69c02cf Merge pull request #260 from elmom/master
Thanks for the contribution! Looks good. Will update some of the semantics shortly, but the idea is solid.
2013-08-19 08:27:01 -07:00
Sonny Jeon
7a175bd2db Push old dev_2 draft to work on other things.
- **NON-FUNCTIONAL**
- Contains an old draft of separating the stepper driver direct access
to the planner buffer. This is designed to keep the stepper and planner
modules independent and prevent overwriting or other complications. In
this way, feedrate override should be able to be installed as well.
- A number of planner optimizations are installed too.
- Not sure where the bugs are. Either in the new planner optimizations,
new stepper module updates, or in both. Or it just could be that the
Arduino AVR is choking with the new things it has to do.
2013-08-19 09:24:22 -06:00
Sonny Jeon
b2b5352e82 Merge pull request #229 from 0xPIT/patch-1
fix command line parameter for avr-size
2013-08-19 08:18:43 -07:00
Elmo Mäntynen
72ef50b17d Refactor config.h to allow defaults for chips/boards with different pin mappings 2013-07-21 15:11:04 +03:00
Elmo Mäntynen
689bc6d471 Added pin mapping list to docs, useful for porting 2013-07-21 13:54:14 +03:00
Elmo Mäntynen
8c781e155c Make serial work with most chips by default 2013-07-21 12:45:45 +03:00
0xPIT
d39abee37d fix command line parameter for avr-size 2013-05-16 21:48:44 +02:00
Sonny Jeon
fc5c497256 Updated readme 2013-04-05 09:32:20 -06:00
Sonny Jeon
ca563cf423 Increased g-code parser line buffer. Added line overflow feedback.
- Increased g-code parser line buffer from 50 to 70 characters. Should
fix most all issues with long arc statements, provided that they are 8
digits(float) long only.

- Added a line buffer overflow feedback error to let the user know when
it encounters this problem. Resets the line whenever this occurs.
(Thanks @BHSPitMonkey!)
2013-04-05 09:29:10 -06:00
Sonny Jeon
1fa3dad206 Updates to edge/dev. Line buffer increased/planner buffer decreased. Line overflow feedback.
- Increased g-code parser line buffer to 70 characters (from 50) to
prevent some long arc commands from getting truncated.

- Decreased planner buffer from 18 to 17 blocks to free up memory for
line buffer.

- Added a line buffer overflow feedback error (Thanks @BHSPitMonkey!)
2013-04-05 09:21:52 -06:00
Sonny Jeon
08baabc63c Minor updates to code and commenting. 2013-03-28 10:11:41 -06:00
Sonny Jeon
49f703bb2c Update README.md 2013-03-22 08:45:46 -06:00
Sonny Jeon
3c9c516a47 Untested! Soft limits, max travel, homing changes, new settings.
- WARNING: Completely untested. Will later when there is time. Settings
WILL be overwritten, as there are new settings.

- Soft limits installed. Homing must be enabled for soft limits to work
correctly. Errors out much like a hard limit, locking out everything
and bringing up the alarm mode. Only difference is it forces a feed
hold before doing so. Position is not lost.

- IMPORTANT: Homing had to be updated so that soft limits work better
with less CPU overhead. When homing completes, all axes are assumed to
exist in negative space. If your limit switch is other side, the homing
cycle with set this axis location to the max travel value, rather than
zero.

- Update mc_line() to accept an array, rather than individual variables.

- Added an mc_auto_cycle_start() function handle this feature.
Organization only.

-
2013-03-21 19:22:07 -06:00
Sonny Jeon
33c6659523 Update README.md 2013-03-19 11:43:11 -06:00
Sonny Jeon
96f7d9b78e G-code updates for G10 L2 and L20
- Updated g-codes G10 L2 and G10 L20 to the new descriptions on
linuxcnc.org
2013-03-19 11:35:24 -06:00
Sonny Jeon
e3cfa93d97 G-code updates for G10 L2 and L20.
- LinuxCNC's g-code definitions changed for G10. Updated to their
descriptions.
2013-03-19 11:33:04 -06:00
Bertus Kruger
61f2bd1bc3 Update planner.c
Removed inline from all functions. 

If this is really needed is there another way that we can get 
around using it? (The Arduino IDE does not recognize it)
2013-03-13 18:41:52 +13:00
Bertus Kruger
f04489530a Update nuts_bolts.c
Removed __floatunsisf and used normal casting on line 81. 
This makes it compatible with the Arduino IDE.
2013-03-13 18:29:28 +13:00
Sonny Jeon
aae1089051 Pushed minor changes. Thanks @Protoneer! 2013-03-12 18:10:24 -06:00
Sonny Jeon
cdcb4263e8 Merge pull request #200 from Protoneer/master
Fixed small bug.
2013-03-12 17:09:54 -07:00
Bertus Kruger
8e01fed143 Update gcode.c
Removed the home_select variable.
2013-03-13 10:19:42 +13:00
Bertus Kruger
5ecc661ec8 Update eeprom.h
Fixed the function signature.
2013-03-13 09:44:22 +13:00
Bertus Kruger
7bb20a7505 Update eeprom.c
Changed back
2013-03-13 09:43:04 +13:00
Bertus Kruger
058cf3f13a Update gcode.c
home_select defined out of scope. Moved it outside the switch 
so the rest of the switch can see it properly.
2013-03-12 19:08:44 +13:00
Bertus Kruger
d376f03bd0 Update eeprom.c
Function eeprom_put_char's parameters did not align with the .h file.
2013-03-12 19:01:17 +13:00
Sonny Jeon
b06643a2e0 Bug fix to-do note on soft limit checks. Not yet completed. 2013-03-01 10:50:36 -07:00
Sonny Jeon
74b2af3c2f Minor changes and added notes to soft limits routines.
- Changed up mc_line to accept an array rather than individual x,y,z
coordinates. Makes some of the position data handling more effective,
especially for a 4th-axis later on.

- Changed up some soft limits variable names.
2013-03-01 09:55:10 -07:00
Sonny Jeon
7951b83294 Merge pull request #193 from bungao/soft_limts
integrating soft limits
2013-02-26 09:35:30 -08:00
Jens Geisler
a0f430d188 bugfix: uninitiallized curr_block->new_entry_speed_sqr lead to step loss
in some cases
2013-02-26 08:40:43 +01:00
bungao
b75e95c880 integrating soft limits 2013-02-26 13:55:12 +11:00
Sonny Jeon
74bdc32332 Added some prelimary notes to new changes. 2013-02-22 14:11:14 -07:00
Sonny Jeon
a85e1b80f7 Push additional updates from @jgeisler0303 2013-02-22 13:23:20 -07:00
Jens Geisler
ea09ddba99 changed atomic access for updating the acceleration profile
the stepper interrupt is only halted when necessary and for the shortest
time possible (8% cycle time)
2013-02-22 16:36:27 +01:00
Sonny Jeon
67608a5014 Merge pull request #188 from jgeisler0303/new_planner
New planner commits merge into dev branch.
2013-02-20 08:25:03 -08:00
Sonny Jeon
40d8b8bf66 Update README.md 2013-02-20 09:23:12 -07:00
Jens Geisler
87864cce19 added counter for planner steps 2013-02-20 15:04:26 +01:00
Jens Geisler
dba26eff91 implemented a mixture of Sonny's MATLAB and my previous grbl planner
ontop of the edge planner
examples run byte for byte identical old and new version
2013-02-20 14:56:47 +01:00
Sonny Jeon
b9bb0894b6 Merge pull request #169 from silasb/fix-execute-bit-on-files
Removing executable bit on the files
2013-01-18 18:15:37 -08:00
Sonny Jeon
97d18f0ffe Merge bug fixes from recent v0.8c push. Added readme for Grbl Sim. 2013-01-18 17:02:44 -07:00
Sonny Jeon
8a1720e1a1 Merge pull request #167 from tmpvar/simulator-mac
Fix sim makefile so it works on mac
2013-01-18 09:12:03 -08:00
Elijah Insua
d0d07b7b0c Fix sim makefile so it works on mac
These changes include a path separator fix and the removal of --gc-sections which causes ld failures, and is not needed on a pc.

This patch also changes how a compiler is selected.  The makefile will now select the system compiler , which should work fine
under mingw and linux.
2013-01-18 09:22:42 -07:00
Silas Baronda
a5c2964a8f Removing executable bit on the files 2013-01-17 23:25:18 -05:00
Sonny Jeon
dd06268c3d Merge pull request #112 from jgeisler0303/simulator
Grbl Simulator. Oh yeah.
2013-01-17 12:01:37 -08:00
Jens Geisler
5e76136dd3 relaunch ontop of latest grbl edge
code very messy but tested
2013-01-17 13:06:51 +01:00