Luigi Santivetti | 69972f9 | 2019-11-12 22:55:40 +0000 | [diff] [blame^] | 1 | ---------------- |
| 2 | Date: 2012-01-17 |
| 3 | Author: Sonny Jeon |
| 4 | Subject: Update readme.textile |
| 5 | |
| 6 | ---------------- |
| 7 | Date: 2012-01-17 |
| 8 | Author: Sonny Jeon |
| 9 | Subject: Merge pull request #47 from chamnit/v0_7 |
| 10 | |
| 11 | Merging chamnit/v0_7 to grbl/master |
| 12 | |
| 13 | ---------------- |
| 14 | Date: 2012-01-17 |
| 15 | Author: Sonny Jeon |
| 16 | Subject: Merge chamnit/v0_7 with grbl/master |
| 17 | |
| 18 | |
| 19 | ---------------- |
| 20 | Date: 2012-01-17 |
| 21 | Author: Sonny Jeon |
| 22 | Subject: Update readme.textile |
| 23 | |
| 24 | ---------------- |
| 25 | Date: 2012-01-17 |
| 26 | Author: Sonny Jeon |
| 27 | Subject: Merge pull request #39 from chamnit/edge |
| 28 | |
| 29 | Merging chamnit/grbl edge v0.8a to grbl/grbl edge |
| 30 | |
| 31 | ---------------- |
| 32 | Date: 2012-01-15 |
| 33 | Author: Sonny Jeon |
| 34 | Subject: Propagated premature step end bug fix from the edge branch. Updated printFloat() function. |
| 35 | |
| 36 | - Will not be uploading a hex build of this, unless asked. |
| 37 | |
| 38 | |
| 39 | ---------------- |
| 40 | Date: 2012-01-15 |
| 41 | Author: Sonny Jeon |
| 42 | Subject: Fix bug with premature step end. Refactored _delay_ms() and square() for better portability. |
| 43 | |
| 44 | - Fixed a premature step end bug dating back to Simen's 0.7b edge |
| 45 | version is fixed, from which this code is forked from. Caused by Timer2 |
| 46 | constantly overflowing calling the Step Reset Interrupt every 128usec. |
| 47 | Now Timer2 is always disabled after a step end and should free up some |
| 48 | cycles for the main program. Could be more than one way to fix this |
| 49 | problem. I'm open to suggestions. |
| 50 | |
| 51 | - _delay_ms() refactored to accept only constants to comply with |
| 52 | current compilers. square() removed since not available with some |
| 53 | compilers. |
| 54 | |
| 55 | |
| 56 | ---------------- |
| 57 | Date: 2012-01-10 |
| 58 | Author: Sonny Jeon |
| 59 | Subject: Extended position reporting with both home and work coordinates. Home position now retained after reset. Other minor changes/fixes. |
| 60 | |
| 61 | - Grbl now tracks both home and work (G92) coordinate systems and does |
| 62 | live updates when G92 is called. |
| 63 | - Rudimentary home and work position status reporting. Works but still |
| 64 | under major construction. |
| 65 | - Updated the main streaming script. Has a disabled periodic timer for |
| 66 | querying status reports, disabled only because the Python timer doesn't |
| 67 | consistently restart after the script exits. Add here only for user |
| 68 | testing. |
| 69 | - Fixed a bug to prevent an endless serial_write loop during status |
| 70 | reports. |
| 71 | - Refactored the planner variables to make it more clear what they are |
| 72 | and make it easier for clear them. |
| 73 | |
| 74 | |
| 75 | ---------------- |
| 76 | Date: 2012-01-09 |
| 77 | Author: Sonny Jeon |
| 78 | Subject: Corrected a minor streaming script character counting bug. |
| 79 | |
| 80 | ---------------- |
| 81 | Date: 2012-01-09 |
| 82 | Author: Sonny Jeon |
| 83 | Subject: Updated line in streaming script. |
| 84 | |
| 85 | ---------------- |
| 86 | Date: 2012-01-06 |
| 87 | Author: Sonny Jeon |
| 88 | Subject: Position reporting, refactored system variables, serial print fixes, updated streaming scripts. |
| 89 | |
| 90 | - Added machine position reporting to status queries. This will be |
| 91 | further developed with part positioning/offsets and maintaining |
| 92 | location upon reset. |
| 93 | |
| 94 | - System variables refactored into a global struct for better |
| 95 | readability. |
| 96 | |
| 97 | - Removed old obsolete Ruby streaming scripts. These were no longer |
| 98 | compatible. Updated Python streaming scripts. |
| 99 | |
| 100 | - Fixed printFloat() and other printing functions. |
| 101 | |
| 102 | - Decreased planner buffer back to 18 blocks and increased TX serial |
| 103 | buffer to 64 bytes. Need the memory space for future developments. |
| 104 | |
| 105 | - Begun adding run-time modes to grbl, where block delete toggle, mm/in |
| 106 | reporting modes, jog modes, etc can be set during runtime. Will be |
| 107 | fleshed out and placed into EEPROM when everything is added. |
| 108 | |
| 109 | |
| 110 | ---------------- |
| 111 | Date: 2011-12-10 |
| 112 | Author: Sonny Jeon |
| 113 | Subject: Various minor updates and variable definition corrections. Removed deprecated acceleration manager. |
| 114 | |
| 115 | - Removed deprecated acceleration manager (non-functional since v0.7b) |
| 116 | - Updated variable types and function headers. - Updated stepper |
| 117 | interrupt to ISR() from SIGNAL()+sei(). - General code cleanup. |
| 118 | |
| 119 | |
| 120 | ---------------- |
| 121 | Date: 2011-12-08 |
| 122 | Author: Sonny Jeon |
| 123 | Subject: Initial v0.8 ALPHA commit. Features multi-tasking run-time command execution (feed hold, cycle start, reset, status query). Extensive re-structuring of code for future features. |
| 124 | |
| 125 | - ALPHA status. - Multitasking ability with run-time command executions |
| 126 | for real-time control and feedback. - Decelerating feed hold and resume |
| 127 | during operation. - System abort/reset, which immediately kills all |
| 128 | movement and re-initializes grbl. - Re-structured grbl to easily allow |
| 129 | for new features: Status reporting, jogging, backlash compensation. (To |
| 130 | be completed in the following releases.) - Resized TX/RX serial buffers |
| 131 | (32/128 bytes) - Increased planner buffer size to 20 blocks. - Updated |
| 132 | documentation. |
| 133 | |
| 134 | |
| 135 | ---------------- |
| 136 | Date: 2011-11-19 |
| 137 | Author: Sonny Jeon |
| 138 | Subject: Updated README and reordered branch versions. |
| 139 | |
| 140 | |
| 141 | ---------------- |
| 142 | Date: 2011-11-19 |
| 143 | Author: Sonny Jeon |
| 144 | Subject: Re-ordered stepper idle function to first disable interrupt. |
| 145 | |
| 146 | ---------------- |
| 147 | Date: 2011-11-11 |
| 148 | Author: Sonny Jeon |
| 149 | Subject: Corrected clearing of target and position variable for the go home routine. Thanks Jens! |
| 150 | |
| 151 | ---------------- |
| 152 | Date: 2011-10-11 |
| 153 | Author: Sonny Jeon |
| 154 | Subject: Delete a new work file shouldn't have been synced. |
| 155 | |
| 156 | |
| 157 | ---------------- |
| 158 | Date: 2011-10-11 |
| 159 | Author: Sonny Jeon |
| 160 | Subject: Third time's a charm! No more deceleration issues! Updated grbl version and settings. General cleanup. |
| 161 | |
| 162 | - Fleshed out the original idea to completely remove the long slope at |
| 163 | the end of deceleration issue. This third time should absolutely |
| 164 | eliminate it. |
| 165 | - Changed the acceleration setting to kept as mm/min^2 internally, |
| 166 | since this was creating unneccessary additional computation in the |
| 167 | planner. Human readable value kept at mm/sec^2. |
| 168 | - Updated grbl version 0.7d and settings version to 4. NOTE: Please |
| 169 | check settings after update. These may have changed, but shouldn't. |
| 170 | - Before updating the new features (pause, e-stop, federate override, |
| 171 | etc), the edge branch will soon be merged with the master, barring any |
| 172 | immediate issues that people may have, and the edge branch will be the |
| 173 | testing ground for the new grbl version 0.8. |
| 174 | |
| 175 | |
| 176 | ---------------- |
| 177 | Date: 2011-10-07 |
| 178 | Author: Sonny Jeon |
| 179 | Subject: Forgot something! Comments on what the last change does. |
| 180 | |
| 181 | |
| 182 | ---------------- |
| 183 | Date: 2011-10-06 |
| 184 | Author: Sonny Jeon |
| 185 | Subject: Minor update to further eliminate the ole long slope deceleration issue. New update note! |
| 186 | |
| 187 | - Added another way to further ensure the long slope deceleration issue |
| 188 | is eliminated. If the stepper rate change is too great near zero, the |
| 189 | stepper rate is adjusted at half increments to the end of travel, |
| 190 | creating a smooth transition. - If the new STEPPER_IDLE_LOCK_TIME is |
| 191 | set as zero, this delay is not compiled at compile-time. - NOTE: The |
| 192 | next update is likely going to be major, involving a full re-write of |
| 193 | the stepper.c program to integrate a simple way to apply pauses, |
| 194 | jogging, e-stop, and feedrate overrides. The interface should be |
| 195 | flexible enough to be easily modified for use with either hardware |
| 196 | switches or software commands. Coming soon. |
| 197 | |
| 198 | |
| 199 | ---------------- |
| 200 | Date: 2011-09-29 |
| 201 | Author: Sonny Jeon |
| 202 | Subject: Added complete stop delay at the end of all motion. Moved grbl preprocessor script into a new repository. |
| 203 | |
| 204 | Added a very short (25 ms) user-definable delay before the steppers are |
| 205 | disabled at the motors are disabled and grbl goes idle. This ensures |
| 206 | any residual inertia at the end of the last motion does not cause the |
| 207 | axes to drift and grbl to lose its position when manually entering |
| 208 | g-code or when performing a tool change and starting the next |
| 209 | operation. |
| 210 | |
| 211 | |
| 212 | ---------------- |
| 213 | Date: 2011-09-25 |
| 214 | Author: Sonny Jeon |
| 215 | Subject: Updated some comments and fixed a bug in the new stepper logic. |
| 216 | |
| 217 | - The stepper logic was not initiating the decelerations for certain |
| 218 | cases. Just re-arranged the logic to fix it. |
| 219 | |
| 220 | |
| 221 | ---------------- |
| 222 | Date: 2011-09-24 |
| 223 | Author: Sonny Jeon |
| 224 | Subject: Fixed long slope at deceleration issue. Moved things into config.h. New MINIMUM_PLANNER_SPEED parameter. |
| 225 | |
| 226 | - The long standing issue of a long slope at deceleration is likely |
| 227 | fixed. The stepper program was not tracking and timing the end of |
| 228 | acceleration and start of deceleration exactly and now is fixed to |
| 229 | start and stop on time. Also, to ensure a better acceleration curve fit |
| 230 | used by the planner, the stepper program delays the start of the |
| 231 | accelerations by a half trapezoid tick to employ the midpoint rule. - |
| 232 | Settings version 3 migration (not fully tested, but should work) - |
| 233 | Added a MINIMUM_PLANNER_SPEED user-defined parameter to planner to let |
| 234 | a user change this if problems arise for some reason. - Moved all |
| 235 | user-definable #define parameters into config.h with clear comments on |
| 236 | what they do and recommendations of how to change them. - Minor |
| 237 | housekeeping. |
| 238 | |
| 239 | |
| 240 | ---------------- |
| 241 | Date: 2011-09-18 |
| 242 | Author: Sonny J |
| 243 | Subject: Fixed minor bugs in planner. Increased max dwell time. Long slope bug stop-gap solution note. |
| 244 | |
| 245 | - Fixed the planner TODO regarding minimum nominal speeds. Re-arranged |
| 246 | calculations to be both more efficient and guaranteed to be greater |
| 247 | than zero. - Missed a parenthesis location on the rate_delta |
| 248 | calculation. Should fix a nearly in-perceptible issue with incorrect |
| 249 | acceleration ramping in diagonal directions. - Increased maximum dwell |
| 250 | time from 6.5sec to an 18hour max. A crazy amount more, but that's how |
| 251 | the math works out. - Converted the internal feedrate values to mm/min |
| 252 | only, as it was switching between mm/min to mm/sec and back to mm/min. |
| 253 | Also added a feedrate > 0 check in gcode.c. - Identified the long slope |
| 254 | at the end of rapid de/ac-celerations noted by stephanix. Problem with |
| 255 | the numerical integration truncation error between the exact solution |
| 256 | of estimate_acceleration_distance and how grbl actually performs the |
| 257 | acceleration ramps discretely. Increasing the |
| 258 | ACCELERATION_TICKS_PER_SECOND in config.h helps fix this problem. |
| 259 | Investigating further. |
| 260 | |
| 261 | |
| 262 | ---------------- |
| 263 | Date: 2011-09-15 |
| 264 | Author: Sonny J |
| 265 | Subject: More '%' modulo opertor removals and some housecleaning. |
| 266 | |
| 267 | - Serial functions contained quite a few modulo operations that would |
| 268 | be executed with high frequency when streaming. AVR processors are very |
| 269 | slow when operating these. In one test on the Arduino forums, it showed |
| 270 | about a 15x slow down compared to a simple if-then statement. - |
| 271 | Clarified some variable names and types and comments. |
| 272 | |
| 273 | |
| 274 | ---------------- |
| 275 | Date: 2011-09-13 |
| 276 | Author: Sonny J |
| 277 | Subject: Further planner improvements and misc minor bug fixes. Memory savings and increased buffer size. |
| 278 | |
| 279 | - Update grbl version and settings version to automatically reset |
| 280 | eeprom. FYI, this will reset your grbl settings. - Saved |
| 281 | 3*BLOCK_BUFFER_SIZE doubles in static memory by removing obsolete |
| 282 | variables: speed_x, speed_y, and speed_z. - Increased buffer size |
| 283 | conservatively to 18 from 16. (Probably can do 20). - Removed expensive! |
| 284 | modulo operator from block indexing function. Reduces significant |
| 285 | computational overhead. - Re-organized some sqrt() calls to be more |
| 286 | efficient during time critical planning cases, rather than non-time |
| 287 | critical. - Minor bug fix in planner max junction velocity logic. - |
| 288 | Simplified arc logic and removed need to multiply for CW or CCW |
| 289 | direction. |
| 290 | |
| 291 | |
| 292 | ---------------- |
| 293 | Date: 2011-09-06 |
| 294 | Author: Sonny J |
| 295 | Subject: Optimized planner re-write. Significantly faster. Full arc support enabled by rotation matrix approach. |
| 296 | |
| 297 | - Significant improvements in the planner. Removed or reordered |
| 298 | repetitive and expensive calculations by order of importance: |
| 299 | recalculating unchanged blocks, trig functions [sin(), cos(), tan()], |
| 300 | sqrt(), divides, and multiplications. Blocks long enough for nominal |
| 301 | speed to be guaranteed to be reached ignored by planner. Done by |
| 302 | introducing two uint8_t flags per block. Reduced computational overhead |
| 303 | by an order of magnitude. - Arc motion generation completely |
| 304 | re-written and optimized. Now runs with acceleration planner. Removed |
| 305 | all but one trig function (atan2) from initialization. Streamlined |
| 306 | computations. Segment target locations generated by vector |
| 307 | transformation and small angle approximation. Arc path correction |
| 308 | implemented for accumulated error of approximation and single precision |
| 309 | calculation of Arduino. Bug fix in message passing. |
| 310 | |
| 311 | |
| 312 | ---------------- |
| 313 | Date: 2011-09-04 |
| 314 | Author: Sonny J |
| 315 | Subject: Minor update for memory savings in ring buffer and fleshed out commenting. |
| 316 | |
| 317 | No changes in functionality. Path vectors moved from ring buffer to |
| 318 | local planner static variables to save 3*(BUFFER_SIZE - 1) doubles in |
| 319 | memory. Detailed comments. Really need to stop micro-updating. Should be |
| 320 | the last until a planner optimization (ala Jens Geisler) has been |
| 321 | completed. |
| 322 | |
| 323 | |
| 324 | ---------------- |
| 325 | Date: 2011-09-04 |
| 326 | Author: Sonny J |
| 327 | Subject: More minor bug fixes in planner. |
| 328 | |
| 329 | Reverse planner was over-writing the initial/buffer tail entry speed, |
| 330 | which reset the forward planner and caused it to lose track of its |
| 331 | speed. Should now accelerate into short linear segments much nicer now. |
| 332 | |
| 333 | |
| 334 | ---------------- |
| 335 | Date: 2011-09-03 |
| 336 | Author: Sonny J |
| 337 | Subject: Minor bug fixes in planner. |
| 338 | |
| 339 | |
| 340 | ---------------- |
| 341 | Date: 2011-09-03 |
| 342 | Author: Sonny J |
| 343 | Subject: Add G02/03 arc conversion/pre-processor script and example streaming script |
| 344 | |
| 345 | Beta pre-processor script used to clean and streamline g-code for |
| 346 | streaming and converts G02/03 arcs into linear segments. Allows for full |
| 347 | acceleration support if the pre-processed g-code is then streamed to |
| 348 | grill, sans G02/03 arcs. Added a simple example streaming script for |
| 349 | Python users. |
| 350 | |
| 351 | |
| 352 | ---------------- |
| 353 | Date: 2011-09-03 |
| 354 | Author: Sonny J |
| 355 | Subject: Significantly improved junction control and fixed computation bugs in planner |
| 356 | |
| 357 | - Junction jerk now re-defined as junction_deviation. The distance from |
| 358 | the junction to the edge of a circle tangent to both previous and |
| 359 | current path lines. The circle radii is used to compute the maximum |
| 360 | junction velocity by centripetal acceleration. More robust and |
| 361 | simplified way to compute jerk. - Fixed bugs related to entry and exit |
| 362 | factors. They were computed based on the current nominal speeds but not |
| 363 | when computing exit factors for neighboring blocks. Removed factors and |
| 364 | replaced with entry speeds only. Factors now only computed for stepper |
| 365 | trapezoid rate conversions. - Misc: Added min(), next_block_index, |
| 366 | prev_block_index functions for clarity. |
| 367 | |
| 368 | |
| 369 | ---------------- |
| 370 | Date: 2011-08-15 |
| 371 | Author: Sonny J |
| 372 | Subject: Moved comment and block delete handling into protocol.c from gcode.c. Fixes bug when comment and block delete are not isolated. Blank lines ignored. |
| 373 | |
| 374 | Comments, block delete characters, and blank lines are no longer passed |
| 375 | to the gcode parser and should free up some memory by ignoring these |
| 376 | characters. Gcode parser now expects clean gcode only. There was a bug |
| 377 | if there were block deletes or comments not in the first character (i.e. |
| 378 | spindle on/off for proofing geode without turning it on, or a NXX |
| 379 | followed by a comment). This should fix it by bypassing the problem. |
| 380 | Left a commented line for easily turning on and off block deletes for a |
| 381 | later feature, if desired. |
| 382 | |
| 383 | |
| 384 | ---------------- |
| 385 | Date: 2011-08-15 |
| 386 | Author: Sonny J |
| 387 | Subject: Revert ea5b8942db2616e93fc0478922010c3bab7c0481^..HEAD |
| 388 | |
| 389 | |
| 390 | ---------------- |
| 391 | Date: 2011-08-15 |
| 392 | Author: Sonny J |
| 393 | Subject: Moved comment and block delete handling into protocol.c from gcode.c. Fixes bug when comment and block delete are not isolated. Blank lines ignored. |
| 394 | |
| 395 | Comments, block delete characters, and blank lines are no longer passed |
| 396 | to the gcode parser and should free up some memory by ignoring these |
| 397 | characters. Gcode parser now expects clean gcode only. There was a bug |
| 398 | if there were block deletes or comments not in the first character (i.e. |
| 399 | spindle on/off for proofing geode without turning it on, or a NXX |
| 400 | followed by a comment). This should fix it by bypassing the problem. |
| 401 | Left a commented line for easily turning on and off block deletes for a |
| 402 | later feature, if desired. |
| 403 | |
| 404 | |
| 405 | ---------------- |
| 406 | Date: 2011-08-15 |
| 407 | Author: Sonny J |
| 408 | Subject: Revert 517a0f659a06182c89cafe27ee371edccad777a4^..HEAD |
| 409 | |
| 410 | |
| 411 | ---------------- |
| 412 | Date: 2011-08-15 |
| 413 | Author: Sonny J |
| 414 | Subject: Revert "Moved comment and block delete handling to be done in protocol.c rather than gcode.c. Prevents these from being held in memory. Also, fixes bug when comments and block delete character are mixed with g-code." |
| 415 | |
| 416 | This reverts commit ea5b8942db2616e93fc0478922010c3bab7c0481. |
| 417 | |
| 418 | |
| 419 | ---------------- |
| 420 | Date: 2011-08-15 |
| 421 | Author: Sonny J |
| 422 | Subject: Revert fdc90f1821f1f5edb7756fcddce75b4b4fbf6bbf^..HEAD |
| 423 | |
| 424 | |
| 425 | ---------------- |
| 426 | Date: 2011-08-15 |
| 427 | Author: chamnit |
| 428 | Subject: Removed comment and block delete handling from gcode.c. Parser expects clean gcode. |
| 429 | |
| 430 | ---------------- |
| 431 | Date: 2011-08-15 |
| 432 | Author: chamnit |
| 433 | Subject: Moved comment and block delete handling to be done in protocol.c rather than gcode.c. Prevents these from being held in memory. Also, fixes bug when comments and block delete character are mixed with g-code. |