Re: Project: Teacup Firmware May 12, 2011 12:20AM |
Re: Project: Teacup Firmware May 12, 2011 09:49AM |
Registered: 13 years ago Posts: 18 |
Re: Project: Teacup Firmware May 12, 2011 02:42PM |
Registered: 13 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware May 12, 2011 03:15PM |
Registered: 13 years ago Posts: 18 |
Re: Project: Teacup Firmware May 13, 2011 05:11AM |
Re: Project: Teacup Firmware May 15, 2011 03:35PM |
Registered: 13 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware May 15, 2011 06:52PM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 16, 2011 02:51PM |
Registered: 13 years ago Posts: 7,616 |
Re: Project: Teacup Firmware May 16, 2011 05:54PM |
Registered: 15 years ago Posts: 45 |
Re: Project: Teacup Firmware May 16, 2011 08:01PM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 17, 2011 04:59AM |
Registered: 15 years ago Posts: 45 |
Re: Project: Teacup Firmware May 17, 2011 06:22AM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 17, 2011 09:44AM |
Registered: 15 years ago Posts: 45 |
Re: Project: Teacup Firmware May 17, 2011 10:08AM |
Registered: 15 years ago Posts: 45 |
Re: Project: Teacup Firmware May 17, 2011 03:41PM |
Registered: 13 years ago Posts: 7,616 |
Store distances in the TARGET structure always in micrometers. This is a intrusive patch and for now, it's done for the X axis only. To make comparison with the former approach easier ... The advantages of this change: - Converting from mm to steps in gcode_parse.c and back in dda.c wastes cycles and accuracy. - In dda.c, UM_PER_STEP simply goes away, so distance calculations work now with STEPS_PER_MM > 500 just fine. 1/16 microstepping on threaded rods (Z axis) becomes possible. - Distance calculations (feedrate, acceleration, ...) become much simpler. - A wide range of STEPS_PER_M can now be handled at reasonable (4 decimal digit) accuracy with a simple macro. Formerly, we were limited to 4096 steps/mm, now we can do 40'960 steps/mm and could easily raise this another digit. Disadvantages: - STEPS_PER_MM is gone in config.h, using STEPS_PER_M is required, because the preprocessor refuses to compare numbers with decimal points in them.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware May 19, 2011 01:07PM |
Registered: 13 years ago Posts: 83 |
Re: Project: Teacup Firmware May 19, 2011 02:00PM |
Registered: 13 years ago Posts: 83 |
Re: Project: Teacup Firmware May 19, 2011 04:33PM |
Registered: 13 years ago Posts: 2,947 |
FFF Settings Calculator | Gcode post processors | Geometric Object Deposition Tool Blog |
Tantillus.org | Mini Printable Lathe | How NOT to install a Pololu driver |
Re: Project: Teacup Firmware May 19, 2011 06:59PM |
Registered: 13 years ago Posts: 7,616 |
Quote
Why don't you do something like
#define STEPS_PER_M (STEPS_PER_MM*1000)
#if STEPS_PER_M_X >= 4096000 #define um_to_steps_x(dest, src) \ do { dest = (src * (STEPS_PER_M_X / 10000L) + 50L) / 100L; } while (0) #elif STEPS_PER_M_X >= 409600 #define um_to_steps_x(dest, src) \ [...]Inserting your suggestion with STEPS_PER_MM_X = 10.123 will prohibit compilation.
Quote
It's perhaps best to revert the changes for now and push them into it's own branch, until this "wandering" issue is resolved.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware May 19, 2011 07:48PM |
Registered: 13 years ago Posts: 83 |
Re: Project: Teacup Firmware May 19, 2011 08:32PM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 19, 2011 08:53PM |
Registered: 14 years ago Posts: 196 |
Re: Project: Teacup Firmware May 19, 2011 09:01PM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 19, 2011 09:24PM |
Registered: 14 years ago Posts: 196 |
Re: Project: Teacup Firmware May 19, 2011 09:37PM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 19, 2011 09:45PM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 20, 2011 04:58AM |
Registered: 13 years ago Posts: 7,616 |
Quote
I'm not sure why you didn't notice it. Perhaps milling is not so sensitive to wandering. Or your gcode precision/STEP_PER_M_X combo didn't introduce any rounding error. Or the error was symmetric and canceld itself out.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: Teacup Firmware May 20, 2011 05:56AM |
Registered: 16 years ago Posts: 1,094 |
Re: Project: Teacup Firmware May 20, 2011 06:49AM |
Registered: 16 years ago Posts: 15 |
line did not help either. Is there any way I can test out the board with just the stepper motor attached?Quote
#define TEMP_THERMISTOR
Re: Project: Teacup Firmware May 20, 2011 06:49AM |
Registered: 13 years ago Posts: 7,616 |
Quote
Now we're in a position where most of the groundwork is done, and most of the patches coming in are experimental things which frequently upset the regular users.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |