This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DDA: Move axis calculations into loops, part 6a.
Clean up code to reduce duplication by consolidating code into loops for per-axis actions. Part 6a is putting stuff inside the step interrupt into a loop, too. do_step() is put into the "tidiest" place. Binary size goes down a remarkable 374 bytes, but stepping performance suffers by almost 30%. Traumflug's performance measurements: SIZES ATmega... '168 '328(P) '644(P) '1280 FLASH : 19908 bytes 139% 65% 32% 16% RAM : 2302 bytes 225% 113% 57% 29% EEPROM: 32 bytes 4% 2% 2% 1% short-moves.gcode Statistics (assuming a 20 MHz clock): LED on occurences: 888. Sum of all LED on time: 354537 clock cycles. LED on time minimum: 390 clock cycles. LED on time maximum: 806 clock cycles. LED on time average: 399.253 clock cycles. smooth-curves.gcode Statistics (assuming a 20 MHz clock): LED on occurences: 9124. Sum of all LED on time: 4268896 clock cycles. LED on time minimum: 395 clock cycles. LED on time maximum: 807 clock cycles. LED on time average: 467.875 clock cycles. triangle-odd.gcode Statistics (assuming a 20 MHz clock): LED on occurences: 1636. Sum of all LED on time: 706846 clock cycles. LED on time minimum: 390 clock cycles. LED on time maximum: 807 clock cycles. LED on time average: 432.057 clock cycles.
- Loading branch information
Showing
3 changed files
with
35 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters