clinton/Smoothieware.git
11 years agomove on_second_tick callout to on_idle event, also provide a flag to detect interrupt...
Michael Moon [Tue, 15 Jan 2013 04:22:35 +0000 (15:22 +1100)]
move on_second_tick callout to on_idle event, also provide a flag to detect interrupt context

11 years agoEvents: add ON_SECOND_TICK event that fires once per second. Also finish moving event...
Michael Moon [Tue, 8 Jan 2013 11:49:21 +0000 (22:49 +1100)]
Events: add ON_SECOND_TICK event that fires once per second. Also finish moving event stuff to Module.{h,cpp} so it's all in one place

11 years agoUSB: ensure interrupts are disabled while getting LPC serial number
Michael Moon [Tue, 15 Jan 2013 01:48:23 +0000 (12:48 +1100)]
USB: ensure interrupts are disabled while getting LPC serial number

11 years agoMerge branch 'fix/gcode_freed_while_in_queue' into edge
Michael Moon [Tue, 15 Jan 2013 04:58:05 +0000 (15:58 +1100)]
Merge branch 'fix/gcode_freed_while_in_queue' into edge

11 years agoallocate Gcode objects on the heap, don't clean them up until the related block becom...
Michael Moon [Tue, 15 Jan 2013 04:37:23 +0000 (15:37 +1100)]
allocate Gcode objects on the heap, don't clean them up until the related block becomes unused

11 years agomakefile: flash target to use defined console, and correct crystal frequency
Michael Moon [Sun, 6 Jan 2013 01:17:09 +0000 (12:17 +1100)]
makefile: flash target to use defined console, and correct crystal frequency

11 years agolooks like clear_vector_double might be broken, trying clear_vector instead
Michael Moon [Sun, 6 Jan 2013 00:53:48 +0000 (11:53 +1100)]
looks like clear_vector_double might be broken, trying clear_vector instead

11 years agobare G92 by itself should behave now
Michael Moon [Sun, 6 Jan 2013 00:38:08 +0000 (11:38 +1100)]
bare G92 by itself should behave now

Reported-by: Ben Gamari <bgamari.foss@gmail.com>
11 years agoMerge branch 'feature/extra-usbserial-interface' into edge
Michael Moon [Thu, 3 Jan 2013 10:56:50 +0000 (21:56 +1100)]
Merge branch 'feature/extra-usbserial-interface' into edge

11 years agoanother USBSerial interface
Michael Moon [Thu, 3 Jan 2013 10:52:14 +0000 (21:52 +1100)]
another USBSerial interface

11 years agoalways add MSD descriptors, don't wait for connect
Michael Moon [Thu, 3 Jan 2013 10:50:27 +0000 (21:50 +1100)]
always add MSD descriptors, don't wait for connect

11 years agoMerge branch 'hotfix/db35a1-typo' into edge
Michael Moon [Wed, 2 Jan 2013 03:43:15 +0000 (14:43 +1100)]
Merge branch 'hotfix/db35a1-typo' into edge

11 years agofix typo - https://github.com/arthurwolf/Smoothie/commit/db35a1525f75c50fb64f9fa0947d...
Michael Moon [Wed, 2 Jan 2013 03:42:38 +0000 (14:42 +1100)]
fix typo - https://github.com/arthurwolf/Smoothie/commit/db35a1525f75c50fb64f9fa0947dd0d421a2ca12#commitcomment-2365308

Reported-by: bwhoward
11 years agoMerge branch 'master' into edge
Michael Moon [Wed, 2 Jan 2013 01:06:19 +0000 (12:06 +1100)]
Merge branch 'master' into edge

11 years agoMerge branch 'feature/new-usb-stack' into edge
Michael Moon [Wed, 2 Jan 2013 00:53:44 +0000 (11:53 +1100)]
Merge branch 'feature/new-usb-stack' into edge

11 years agoWatchdog: default disabled, currently messes with DFU reset
Michael Moon [Wed, 2 Jan 2013 00:39:36 +0000 (11:39 +1100)]
Watchdog: default disabled, currently messes with DFU reset

11 years agolonger, slower SD card initialisation - seems that we're too quick for some cards
Michael Moon [Wed, 2 Jan 2013 00:38:52 +0000 (11:38 +1100)]
longer, slower SD card initialisation - seems that we're too quick for some cards

11 years agoRobot: change defaults to better suit smoothieboard, some whitespace changes, delete...
Michael Moon [Wed, 2 Jan 2013 00:37:14 +0000 (11:37 +1100)]
Robot: change defaults to better suit smoothieboard, some whitespace changes, delete old arm_solution if we get a new one for some reason

11 years agoUSBSerial: swap CDC endpoint descriptors for compatibility with a stupidly naive...
Michael Moon [Tue, 1 Jan 2013 00:09:07 +0000 (11:09 +1100)]
USBSerial: swap CDC endpoint descriptors for compatibility with a stupidly naive android driver which makes a lot of assumptions instead of reading descriptors

11 years agoTemperatureControl: go all the way to max_pwm instead of one below
Michael Moon [Mon, 31 Dec 2012 04:26:19 +0000 (15:26 +1100)]
TemperatureControl: go all the way to max_pwm instead of one below

11 years agoTemperatureControl: Increase oversample to 8 samples
Michael Moon [Mon, 31 Dec 2012 04:24:54 +0000 (15:24 +1100)]
TemperatureControl: Increase oversample to 8 samples

11 years agoTemperatureControl: ensure pwm output is set to 0 when heater is turned off - cosmeti...
Michael Moon [Mon, 31 Dec 2012 04:24:12 +0000 (15:24 +1100)]
TemperatureControl: ensure pwm output is set to 0 when heater is turned off - cosmetic purposes only

11 years agoPID Autotune: big update, use algorithm from Marlin firmware
Michael Moon [Mon, 31 Dec 2012 04:17:00 +0000 (15:17 +1100)]
PID Autotune: big update, use algorithm from Marlin firmware

11 years agouse an enum to better manage the event indexes, add two new events pending config...
Michael Moon [Mon, 31 Dec 2012 01:18:05 +0000 (12:18 +1100)]
use an enum to better manage the event indexes, add two new events pending config system upgrade

11 years agopromote Pwm functions to a new class that overloads Pin, alter use of Pwm in Temperat...
Michael Moon [Mon, 31 Dec 2012 01:16:06 +0000 (12:16 +1100)]
promote Pwm functions to a new class that overloads Pin, alter use of Pwm in TemperatureControl and Switch to reflect this, ConfigValue gets new method: as_pwm()

11 years agoRevert "ignore moves with fewer than 5 steps, see if it helps with occasional 0-speed...
Michael Moon [Sun, 30 Dec 2012 13:09:19 +0000 (00:09 +1100)]
Revert "ignore moves with fewer than 5 steps, see if it helps with occasional 0-speed moves showing up in block queue"

turns out, this breaks extruder only moves

This reverts commit 8bc58d38fab732e09c5a3840c36192b08453539e.

11 years agoConfigValue: support integers for faster operation when we don't need floats
Michael Moon [Sun, 30 Dec 2012 12:53:35 +0000 (23:53 +1100)]
ConfigValue: support integers for faster operation when we don't need floats

11 years agoPID Autotuner initial commit - results are poor, needs fine tuning
Michael Moon [Sun, 30 Dec 2012 12:49:17 +0000 (23:49 +1100)]
PID Autotuner initial commit - results are poor, needs fine tuning

11 years agoExtruder reports position on M114 too
Michael Moon [Sun, 30 Dec 2012 12:48:10 +0000 (23:48 +1100)]
Extruder reports position on M114 too

11 years agomake extra sure that heater outputs get turned off when target is set to 0
Michael Moon [Sun, 30 Dec 2012 12:22:07 +0000 (23:22 +1100)]
make extra sure that heater outputs get turned off when target is set to 0

11 years agoTemperatureControl PID: prevent integrator from winding up - adjust if output exceeds...
Michael Moon [Sun, 30 Dec 2012 10:14:48 +0000 (21:14 +1100)]
TemperatureControl PID: prevent integrator from winding up - adjust if output exceeds bounds

11 years agoTemperatureControl: allow setting PID values indepdendently with M301
Michael Moon [Sun, 30 Dec 2012 09:39:30 +0000 (20:39 +1100)]
TemperatureControl: allow setting PID values indepdendently with M301

11 years agodrop default current to 1.5A in case of hot days
Michael Moon [Sun, 30 Dec 2012 09:32:57 +0000 (20:32 +1100)]
drop default current to 1.5A in case of hot days

11 years agoSDCard: fail read/write immediately if card is not initialised
Michael Moon [Sun, 30 Dec 2012 09:32:12 +0000 (20:32 +1100)]
SDCard: fail read/write immediately if card is not initialised

11 years agoSwitch and TemperatureControl: 1khz modulation rate
Michael Moon [Sun, 30 Dec 2012 09:31:22 +0000 (20:31 +1100)]
Switch and TemperatureControl: 1khz modulation rate

11 years agoSlowTicker: integer math only in interrupt context
Michael Moon [Sun, 30 Dec 2012 09:30:44 +0000 (20:30 +1100)]
SlowTicker: integer math only in interrupt context

11 years agoignore moves with fewer than 5 steps, see if it helps with occasional 0-speed moves...
Michael Moon [Sun, 30 Dec 2012 08:56:21 +0000 (19:56 +1100)]
ignore moves with fewer than 5 steps, see if it helps with occasional 0-speed moves showing up in block queue

11 years agosupport M92 set axis steps per mm
Michael Moon [Sun, 30 Dec 2012 07:49:53 +0000 (18:49 +1100)]
support M92 set axis steps per mm

11 years agoprovide checksum script to easily generate config checksum values
Michael Moon [Sat, 29 Dec 2012 23:16:47 +0000 (10:16 +1100)]
provide checksum script to easily generate config checksum values

11 years agodefault config: reduce default max speed and accel
Michael Moon [Sat, 29 Dec 2012 06:55:06 +0000 (17:55 +1100)]
default config: reduce default max speed and accel

11 years agoCurrentControl: report set currents on M907
Michael Moon [Sat, 29 Dec 2012 06:54:40 +0000 (17:54 +1100)]
CurrentControl: report set currents on M907

11 years agosupport M907 - set stepper driver current
Michael Moon [Sat, 29 Dec 2012 04:17:51 +0000 (15:17 +1100)]
support M907 - set stepper driver current

11 years agoConfig: 1.8A current limit, axis speed limits
Michael Moon [Fri, 28 Dec 2012 05:51:20 +0000 (16:51 +1100)]
Config: 1.8A current limit, axis speed limits

11 years agoConfig: raise max step rate to 100khz
Michael Moon [Fri, 28 Dec 2012 05:50:48 +0000 (16:50 +1100)]
Config: raise max step rate to 100khz

11 years agoPID: use sensible defaults, auto-scale to PIN_PWM_MAX, reduce smoothing buffer to...
Michael Moon [Fri, 28 Dec 2012 05:49:44 +0000 (16:49 +1100)]
PID: use sensible defaults, auto-scale to PIN_PWM_MAX, reduce smoothing buffer to 4 readings so D term can operate properly

11 years agoStepTicker: skip unused variable warnings
Michael Moon [Fri, 28 Dec 2012 05:48:48 +0000 (16:48 +1100)]
StepTicker: skip unused variable warnings

11 years agotranslate 0..255 range to PIN_PWM_MAX
Michael Moon [Fri, 28 Dec 2012 05:48:17 +0000 (16:48 +1100)]
translate 0..255 range to PIN_PWM_MAX

11 years agoPin: split larger functions out into implementation file
Michael Moon [Fri, 28 Dec 2012 05:47:23 +0000 (16:47 +1100)]
Pin: split larger functions out into implementation file

11 years agoExtruder: initial max speed, also move constants into header file
Michael Moon [Fri, 28 Dec 2012 05:46:04 +0000 (16:46 +1100)]
Extruder: initial max speed, also move constants into header file

11 years agoSlowTicker: use ints instead of floats- no need to use floats here
Michael Moon [Fri, 28 Dec 2012 05:45:26 +0000 (16:45 +1100)]
SlowTicker: use ints instead of floats- no need to use floats here

11 years agodon't display adc value with M105, other misc cleanups
Michael Moon [Thu, 27 Dec 2012 21:35:36 +0000 (08:35 +1100)]
don't display adc value with M105, other misc cleanups

11 years agoalter PID multiplier to get nicer input numbers, similar to marlin perhaps
Michael Moon [Thu, 27 Dec 2012 21:33:44 +0000 (08:33 +1100)]
alter PID multiplier to get nicer input numbers, similar to marlin perhaps

11 years agoSwitch: support PWM eg for fans
Michael Moon [Thu, 27 Dec 2012 12:23:36 +0000 (23:23 +1100)]
Switch: support PWM eg for fans

11 years agoTemperatureControl: revamp whole thing. TODO: find out why we're getting dodgy ADC...
Michael Moon [Wed, 26 Dec 2012 16:14:15 +0000 (03:14 +1100)]
TemperatureControl: revamp whole thing. TODO: find out why we're getting dodgy ADC readings

11 years agoPin: initialise and cap Sigma-Delta accumulator to prevent stupidness
Michael Moon [Wed, 26 Dec 2012 16:11:34 +0000 (03:11 +1100)]
Pin: initialise and cap Sigma-Delta accumulator to prevent stupidness

11 years agoPin: support sigma-delta modulation as long as someone calls tick() for us
Michael Moon [Wed, 26 Dec 2012 12:47:49 +0000 (23:47 +1100)]
Pin: support sigma-delta modulation as long as someone calls tick() for us

11 years agoswap bed and nozzle heater outputs, P2.5 doesn't have thermals in the high current...
Michael Moon [Wed, 26 Dec 2012 07:51:50 +0000 (18:51 +1100)]
swap bed and nozzle heater outputs, P2.5 doesn't have thermals in the high current path

11 years agoenable G92 - does this have a bug or something?
Michael Moon [Wed, 26 Dec 2012 07:14:33 +0000 (18:14 +1100)]
enable G92 - does this have a bug or something?

11 years agodebug most recently uploaded elf instead of most recently compiled elf
Michael Moon [Wed, 26 Dec 2012 06:59:19 +0000 (17:59 +1100)]
debug most recently uploaded elf instead of most recently compiled elf

11 years agosend packet asap if there's enough data to fill one
Michael Moon [Wed, 26 Dec 2012 06:58:42 +0000 (17:58 +1100)]
send packet asap if there's enough data to fill one

11 years agoUSBSerial: reduce number of packets sent when puts() is invoked
Michael Moon [Wed, 26 Dec 2012 06:55:36 +0000 (17:55 +1100)]
USBSerial: reduce number of packets sent when puts() is invoked

11 years agooff-by-one error in utils.c prevents config-set from functioning correctly
Michael Moon [Wed, 26 Dec 2012 03:15:16 +0000 (14:15 +1100)]
off-by-one error in utils.c prevents config-set from functioning correctly

11 years agoRevert "CONFIG: use config.txt on sd card, update default config name to reflect...
Michael Moon [Mon, 24 Dec 2012 10:38:49 +0000 (21:38 +1100)]
Revert "CONFIG: use config.txt on sd card, update default config name to reflect this"

This reverts commit 5857b2320fb7e07021c5995e8963787601a57727.

For some reason, this commit causes Smoothie to fail to start. I have no idea why and will investigate further

11 years agoCONFIG: use config.txt on sd card, update default config name to reflect this
Michael Moon [Mon, 24 Dec 2012 09:36:32 +0000 (20:36 +1100)]
CONFIG: use config.txt on sd card, update default config name to reflect this

11 years agorename default config with more useful name, don't confuse with ini format
Michael Moon [Mon, 24 Dec 2012 09:30:40 +0000 (20:30 +1100)]
rename default config with more useful name, don't confuse with ini format

11 years agoUSBSerial: missed CDC header descriptor, changed descriptor order slightly
Michael Moon [Mon, 24 Dec 2012 09:21:30 +0000 (20:21 +1100)]
USBSerial: missed CDC header descriptor, changed descriptor order slightly

11 years agoUSB: alter device descriptor so windows pays attention to the IAD
Michael Moon [Mon, 24 Dec 2012 09:11:14 +0000 (20:11 +1100)]
USB: alter device descriptor so windows pays attention to the IAD

11 years agoUSBSerial: add interface association descriptor to help windows work out what's happening
Michael Moon [Mon, 24 Dec 2012 09:05:37 +0000 (20:05 +1100)]
USBSerial: add interface association descriptor to help windows work out what's happening

11 years agoUSBSerial: use struct for CDC line coding
Michael Moon [Sun, 23 Dec 2012 08:41:04 +0000 (19:41 +1100)]
USBSerial: use struct for CDC line coding

11 years agoUSB: use default setup packet buffer, honor class-provided buffer
Michael Moon [Sun, 23 Dec 2012 08:39:47 +0000 (19:39 +1100)]
USB: use default setup packet buffer, honor class-provided buffer

11 years agoUSB: add interface description strings
Michael Moon [Sun, 23 Dec 2012 07:49:35 +0000 (18:49 +1100)]
USB: add interface description strings

11 years agoUSB: detect control endpoint interrupts when buffers aren't ready
Michael Moon [Sun, 23 Dec 2012 06:38:43 +0000 (17:38 +1100)]
USB: detect control endpoint interrupts when buffers aren't ready

11 years agoUSB: don't include strings in config descriptor
Michael Moon [Sun, 23 Dec 2012 06:28:44 +0000 (17:28 +1100)]
USB: don't include strings in config descriptor

11 years agomakefile: allow user to change console device easily
Michael Moon [Sat, 22 Dec 2012 22:14:23 +0000 (09:14 +1100)]
makefile: allow user to change console device easily

11 years agoreinstate configuration of uart0 baudrate, set default to 115200 in default config
Michael Moon [Sat, 22 Dec 2012 03:08:01 +0000 (14:08 +1100)]
reinstate configuration of uart0 baudrate, set default to 115200 in default config

11 years agoDFU: 1 second watchdog reset
Michael Moon [Sat, 22 Dec 2012 01:20:21 +0000 (12:20 +1100)]
DFU: 1 second watchdog reset

11 years agoDisplay temperatures properly using designators and single line output
Michael Moon [Sat, 22 Dec 2012 01:19:30 +0000 (12:19 +1100)]
Display temperatures properly using designators and single line output

11 years agoKLUDGE: StepperMotor: enforce minimum step time of 1s. TODO: find out why super slow...
Michael Moon [Sat, 22 Dec 2012 01:18:28 +0000 (12:18 +1100)]
KLUDGE: StepperMotor: enforce minimum step time of 1s. TODO: find out why super slow moves happen in the first place

11 years agoDEBUG: enter MRI from SlowTicker ISR if ISP button is pressed
Michael Moon [Sat, 22 Dec 2012 01:17:33 +0000 (12:17 +1100)]
DEBUG: enter MRI from SlowTicker ISR if ISP button is pressed

11 years agogcc-4.6 compatible usb strings initialisation
Michael Moon [Sat, 22 Dec 2012 01:16:00 +0000 (12:16 +1100)]
gcc-4.6 compatible usb strings initialisation

11 years agoadd designators to default configuration
Michael Moon [Thu, 20 Dec 2012 22:51:23 +0000 (09:51 +1100)]
add designators to default configuration

11 years agoTemperatureControl: emulate temperature reporting of other reprap firmwares, add...
Michael Moon [Thu, 20 Dec 2012 22:46:16 +0000 (09:46 +1100)]
TemperatureControl: emulate temperature reporting of other reprap firmwares, add "designator" configurable to choose T, B, etc

11 years agofix StepTicker walking off the end of active_motors array if the last motor is removed
Michael Moon [Thu, 20 Dec 2012 10:36:40 +0000 (21:36 +1100)]
fix StepTicker walking off the end of active_motors array if the last motor is removed

11 years agoreinstate timer initialisation, disabled as part of debug earlier
Michael Moon [Thu, 20 Dec 2012 07:53:47 +0000 (18:53 +1100)]
reinstate timer initialisation, disabled as part of debug earlier

11 years agokill heater and generate error if thermistor gives open or shorted reading
Michael Moon [Thu, 20 Dec 2012 04:10:02 +0000 (15:10 +1100)]
kill heater and generate error if thermistor gives open or shorted reading

11 years agoreduce debug information sent via UART0
Michael Moon [Thu, 20 Dec 2012 04:00:40 +0000 (15:00 +1100)]
reduce debug information sent via UART0

11 years agoUSBSerial: don't send \r, prevent double spaced lines on serial terminals
Michael Moon [Thu, 20 Dec 2012 04:00:17 +0000 (15:00 +1100)]
USBSerial: don't send \r, prevent double spaced lines on serial terminals

11 years agosetting temperature of 0 disables heater, will not turn on even if thermistor is...
Michael Moon [Thu, 20 Dec 2012 03:43:33 +0000 (14:43 +1100)]
setting temperature of 0 disables heater, will not turn on even if thermistor is unplugged and reads negative temperature

11 years agoadd SD card to mbed's list of filesystems
Michael Moon [Thu, 20 Dec 2012 03:38:21 +0000 (14:38 +1100)]
add SD card to mbed's list of filesystems

11 years agoStreamOutput: inherit Stream, StreamOutputPool: use puts instead of printf to improve...
Michael Moon [Wed, 19 Dec 2012 23:57:40 +0000 (10:57 +1100)]
StreamOutput: inherit Stream, StreamOutputPool: use puts instead of printf to improve efficiency

11 years agoDFU: increase detach timeout to 2 seconds
Michael Moon [Wed, 19 Dec 2012 23:56:47 +0000 (10:56 +1100)]
DFU: increase detach timeout to 2 seconds

11 years agoremove usbserial debug spam
Michael Moon [Wed, 19 Dec 2012 14:19:48 +0000 (01:19 +1100)]
remove usbserial debug spam

11 years agoon_main_loop requires an argument
Michael Moon [Wed, 19 Dec 2012 14:09:23 +0000 (01:09 +1100)]
on_main_loop requires an argument

11 years agoUSBSerial: add and remove from kernel streams when host software connects/disconnects
Michael Moon [Wed, 19 Dec 2012 12:38:13 +0000 (23:38 +1100)]
USBSerial: add and remove from kernel streams when host software connects/disconnects

11 years agoDFU application mode support
Michael Moon [Wed, 19 Dec 2012 12:37:36 +0000 (23:37 +1100)]
DFU application mode support

11 years agoMakefile: add upload, debug, console targets
Michael Moon [Wed, 19 Dec 2012 10:57:34 +0000 (21:57 +1100)]
Makefile: add upload, debug, console targets

11 years agodebug- repair kernel startup routine
Michael Moon [Wed, 19 Dec 2012 10:57:05 +0000 (21:57 +1100)]
debug- repair kernel startup routine

11 years agoDefault config for Smoothieboard
Michael Moon [Wed, 19 Dec 2012 00:24:12 +0000 (11:24 +1100)]
Default config for Smoothieboard

11 years agomakefile: add upload target using dfu-util
Michael Moon [Wed, 19 Dec 2012 00:12:56 +0000 (11:12 +1100)]
makefile: add upload target using dfu-util

11 years agoPin: ensure FIOMASK is correct, also check nc pin in all functions
Michael Moon [Wed, 19 Dec 2012 00:12:15 +0000 (11:12 +1100)]
Pin: ensure FIOMASK is correct, also check nc pin in all functions