Limit pin internal pull-resistors enabled. Re-wrote read_double() function. Correctly changed all 'double's to 'float's.

- Limit pin internal pull-resistors now enabled. Normal high operation.
This will be the standard going forward.

- Updated all of the 'double' variable types to 'float' to reflect what
happens when compiled for the Arduino. Also done for compatibility
reasons to @jgeisler0303 's Grbl simulator code.

- G-code parser will now ignore 'E' exponent values, since they are
reserved g-code characters for some machines. Thanks @csdexter!

- The read_double() function was re-written and optimized for use in
Grbl. The strtod() avr lib was removed.
This commit is contained in:
Sonny Jeon
2012-10-08 15:57:58 -06:00
parent d30cb906f8
commit ff82489da7
16 changed files with 183 additions and 110 deletions

View File

@ -33,15 +33,15 @@
// Current global settings (persisted in EEPROM from byte 1 onwards)
typedef struct {
double steps_per_mm[3];
float steps_per_mm[3];
uint8_t microsteps;
uint8_t pulse_microseconds;
double default_feed_rate;
double default_seek_rate;
float default_feed_rate;
float default_seek_rate;
uint8_t invert_mask;
double mm_per_arc_segment;
double acceleration;
double junction_deviation;
float mm_per_arc_segment;
float acceleration;
float junction_deviation;
} settings_t;
extern settings_t settings;
@ -55,6 +55,6 @@ void settings_dump();
uint8_t settings_execute_line(char *line);
// A helper method to set new settings from command line
void settings_store_setting(int parameter, double value);
void settings_store_setting(int parameter, float value);
#endif