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
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
Michael Moon [Tue, 15 Jan 2013 01:48:23 +0000 (12:48 +1100)]
USB: ensure interrupts are disabled while getting LPC serial number
Michael Moon [Tue, 15 Jan 2013 04:58:05 +0000 (15:58 +1100)]
Merge branch 'fix/gcode_freed_while_in_queue' into edge
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
Michael Moon [Sun, 6 Jan 2013 01:17:09 +0000 (12:17 +1100)]
makefile: flash target to use defined console, and correct crystal frequency
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
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>
Michael Moon [Thu, 3 Jan 2013 10:56:50 +0000 (21:56 +1100)]
Merge branch 'feature/extra-usbserial-interface' into edge
Michael Moon [Thu, 3 Jan 2013 10:52:14 +0000 (21:52 +1100)]
another USBSerial interface
Michael Moon [Thu, 3 Jan 2013 10:50:27 +0000 (21:50 +1100)]
always add MSD descriptors, don't wait for connect
Michael Moon [Wed, 2 Jan 2013 03:43:15 +0000 (14:43 +1100)]
Merge branch 'hotfix/db35a1-typo' into edge
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
Michael Moon [Wed, 2 Jan 2013 01:06:19 +0000 (12:06 +1100)]
Merge branch 'master' into edge
Michael Moon [Wed, 2 Jan 2013 00:53:44 +0000 (11:53 +1100)]
Merge branch 'feature/new-usb-stack' into edge
Michael Moon [Wed, 2 Jan 2013 00:39:36 +0000 (11:39 +1100)]
Watchdog: default disabled, currently messes with DFU reset
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
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
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
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
Michael Moon [Mon, 31 Dec 2012 04:24:54 +0000 (15:24 +1100)]
TemperatureControl: Increase oversample to 8 samples
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
Michael Moon [Mon, 31 Dec 2012 04:17:00 +0000 (15:17 +1100)]
PID Autotune: big update, use algorithm from Marlin firmware
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
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()
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.
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
Michael Moon [Sun, 30 Dec 2012 12:49:17 +0000 (23:49 +1100)]
PID Autotuner initial commit - results are poor, needs fine tuning
Michael Moon [Sun, 30 Dec 2012 12:48:10 +0000 (23:48 +1100)]
Extruder reports position on M114 too
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
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
Michael Moon [Sun, 30 Dec 2012 09:39:30 +0000 (20:39 +1100)]
TemperatureControl: allow setting PID values indepdendently with M301
Michael Moon [Sun, 30 Dec 2012 09:32:57 +0000 (20:32 +1100)]
drop default current to 1.5A in case of hot days
Michael Moon [Sun, 30 Dec 2012 09:32:12 +0000 (20:32 +1100)]
SDCard: fail read/write immediately if card is not initialised
Michael Moon [Sun, 30 Dec 2012 09:31:22 +0000 (20:31 +1100)]
Switch and TemperatureControl: 1khz modulation rate
Michael Moon [Sun, 30 Dec 2012 09:30:44 +0000 (20:30 +1100)]
SlowTicker: integer math only in interrupt context
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
Michael Moon [Sun, 30 Dec 2012 07:49:53 +0000 (18:49 +1100)]
support M92 set axis steps per mm
Michael Moon [Sat, 29 Dec 2012 23:16:47 +0000 (10:16 +1100)]
provide checksum script to easily generate config checksum values
Michael Moon [Sat, 29 Dec 2012 06:55:06 +0000 (17:55 +1100)]
default config: reduce default max speed and accel
Michael Moon [Sat, 29 Dec 2012 06:54:40 +0000 (17:54 +1100)]
CurrentControl: report set currents on M907
Michael Moon [Sat, 29 Dec 2012 04:17:51 +0000 (15:17 +1100)]
support M907 - set stepper driver current
Michael Moon [Fri, 28 Dec 2012 05:51:20 +0000 (16:51 +1100)]
Config: 1.8A current limit, axis speed limits
Michael Moon [Fri, 28 Dec 2012 05:50:48 +0000 (16:50 +1100)]
Config: raise max step rate to 100khz
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
Michael Moon [Fri, 28 Dec 2012 05:48:48 +0000 (16:48 +1100)]
StepTicker: skip unused variable warnings
Michael Moon [Fri, 28 Dec 2012 05:48:17 +0000 (16:48 +1100)]
translate 0..255 range to PIN_PWM_MAX
Michael Moon [Fri, 28 Dec 2012 05:47:23 +0000 (16:47 +1100)]
Pin: split larger functions out into implementation file
Michael Moon [Fri, 28 Dec 2012 05:46:04 +0000 (16:46 +1100)]
Extruder: initial max speed, also move constants into header file
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
Michael Moon [Thu, 27 Dec 2012 21:35:36 +0000 (08:35 +1100)]
don't display adc value with M105, other misc cleanups
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
Michael Moon [Thu, 27 Dec 2012 12:23:36 +0000 (23:23 +1100)]
Switch: support PWM eg for fans
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
Michael Moon [Wed, 26 Dec 2012 16:11:34 +0000 (03:11 +1100)]
Pin: initialise and cap Sigma-Delta accumulator to prevent stupidness
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
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
Michael Moon [Wed, 26 Dec 2012 07:14:33 +0000 (18:14 +1100)]
enable G92 - does this have a bug or something?
Michael Moon [Wed, 26 Dec 2012 06:59:19 +0000 (17:59 +1100)]
debug most recently uploaded elf instead of most recently compiled elf
Michael Moon [Wed, 26 Dec 2012 06:58:42 +0000 (17:58 +1100)]
send packet asap if there's enough data to fill one
Michael Moon [Wed, 26 Dec 2012 06:55:36 +0000 (17:55 +1100)]
USBSerial: reduce number of packets sent when puts() is invoked
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
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
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
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
Michael Moon [Mon, 24 Dec 2012 09:21:30 +0000 (20:21 +1100)]
USBSerial: missed CDC header descriptor, changed descriptor order slightly
Michael Moon [Mon, 24 Dec 2012 09:11:14 +0000 (20:11 +1100)]
USB: alter device descriptor so windows pays attention to the IAD
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
Michael Moon [Sun, 23 Dec 2012 08:41:04 +0000 (19:41 +1100)]
USBSerial: use struct for CDC line coding
Michael Moon [Sun, 23 Dec 2012 08:39:47 +0000 (19:39 +1100)]
USB: use default setup packet buffer, honor class-provided buffer
Michael Moon [Sun, 23 Dec 2012 07:49:35 +0000 (18:49 +1100)]
USB: add interface description strings
Michael Moon [Sun, 23 Dec 2012 06:38:43 +0000 (17:38 +1100)]
USB: detect control endpoint interrupts when buffers aren't ready
Michael Moon [Sun, 23 Dec 2012 06:28:44 +0000 (17:28 +1100)]
USB: don't include strings in config descriptor
Michael Moon [Sat, 22 Dec 2012 22:14:23 +0000 (09:14 +1100)]
makefile: allow user to change console device easily
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
Michael Moon [Sat, 22 Dec 2012 01:20:21 +0000 (12:20 +1100)]
DFU: 1 second watchdog reset
Michael Moon [Sat, 22 Dec 2012 01:19:30 +0000 (12:19 +1100)]
Display temperatures properly using designators and single line output
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
Michael Moon [Sat, 22 Dec 2012 01:17:33 +0000 (12:17 +1100)]
DEBUG: enter MRI from SlowTicker ISR if ISP button is pressed
Michael Moon [Sat, 22 Dec 2012 01:16:00 +0000 (12:16 +1100)]
gcc-4.6 compatible usb strings initialisation
Michael Moon [Thu, 20 Dec 2012 22:51:23 +0000 (09:51 +1100)]
add designators to default configuration
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
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
Michael Moon [Thu, 20 Dec 2012 07:53:47 +0000 (18:53 +1100)]
reinstate timer initialisation, disabled as part of debug earlier
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
Michael Moon [Thu, 20 Dec 2012 04:00:40 +0000 (15:00 +1100)]
reduce debug information sent via UART0
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
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
Michael Moon [Thu, 20 Dec 2012 03:38:21 +0000 (14:38 +1100)]
add SD card to mbed's list of filesystems
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
Michael Moon [Wed, 19 Dec 2012 23:56:47 +0000 (10:56 +1100)]
DFU: increase detach timeout to 2 seconds
Michael Moon [Wed, 19 Dec 2012 14:19:48 +0000 (01:19 +1100)]
remove usbserial debug spam
Michael Moon [Wed, 19 Dec 2012 14:09:23 +0000 (01:09 +1100)]
on_main_loop requires an argument
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
Michael Moon [Wed, 19 Dec 2012 12:37:36 +0000 (23:37 +1100)]
DFU application mode support
Michael Moon [Wed, 19 Dec 2012 10:57:34 +0000 (21:57 +1100)]
Makefile: add upload, debug, console targets
Michael Moon [Wed, 19 Dec 2012 10:57:05 +0000 (21:57 +1100)]
debug- repair kernel startup routine
Michael Moon [Wed, 19 Dec 2012 00:24:12 +0000 (11:24 +1100)]
Default config for Smoothieboard
Michael Moon [Wed, 19 Dec 2012 00:12:56 +0000 (11:12 +1100)]
makefile: add upload target using dfu-util
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