bbctrl-firmware
9 years agoRound seg period, removed dead code
Joseph Coffland [Wed, 21 Sep 2016 16:08:55 +0000 (09:08 -0700)]
Round seg period, removed dead code

9 years agoCleanup, check NOM_SEGMENT_USEC <= MAX_SEGMENT_TIME
Joseph Coffland [Wed, 21 Sep 2016 15:51:40 +0000 (08:51 -0700)]
Cleanup, check NOM_SEGMENT_USEC <= MAX_SEGMENT_TIME

9 years agoMuch improved step correction using PID loop
Joseph Coffland [Wed, 21 Sep 2016 13:42:42 +0000 (06:42 -0700)]
Much improved step correction using PID loop

9 years agoWorking on step correction
Joseph Coffland [Wed, 21 Sep 2016 11:18:53 +0000 (04:18 -0700)]
Working on step correction

9 years agoAccurate positioning but velocity wavers a bit
Joseph Coffland [Wed, 21 Sep 2016 05:13:41 +0000 (22:13 -0700)]
Accurate positioning but velocity wavers a bit

9 years agoFixed jog reverse direction
Joseph Coffland [Mon, 19 Sep 2016 04:22:01 +0000 (21:22 -0700)]
Fixed jog reverse direction

9 years agoFix to exit jog mode
Joseph Coffland [Mon, 19 Sep 2016 04:01:21 +0000 (21:01 -0700)]
Fix to exit jog mode

9 years agoS-curve jogging
Joseph Coffland [Mon, 19 Sep 2016 03:57:22 +0000 (20:57 -0700)]
S-curve jogging

9 years agoUse encoder counts to correct step position exactly, Reduced forward diff calc from...
Joseph Coffland [Sun, 18 Sep 2016 20:17:58 +0000 (13:17 -0700)]
Use encoder counts to correct step position exactly, Reduced forward diff calc from 42 multiples and 2 divides to 23 and 1

9 years agoImplemented stepping
Joseph Coffland [Tue, 13 Sep 2016 10:21:31 +0000 (03:21 -0700)]
Implemented stepping

9 years agorun_state -> buffer_state
Joseph Coffland [Tue, 13 Sep 2016 01:30:35 +0000 (18:30 -0700)]
run_state -> buffer_state

9 years agoWork on spindle vars, Added hold reason, hold on tool change, hold on pallet change...
Joseph Coffland [Mon, 12 Sep 2016 06:17:55 +0000 (23:17 -0700)]
Work on spindle vars, Added hold reason, hold on tool change, hold on pallet change, optional hold

9 years agoFixed arcs
Joseph Coffland [Mon, 12 Sep 2016 03:59:38 +0000 (20:59 -0700)]
Fixed arcs

9 years agoSmooth holds with intermixed nonstop commands.
Joseph Coffland [Mon, 12 Sep 2016 03:52:21 +0000 (20:52 -0700)]
Smooth holds with intermixed nonstop commands.

9 years agoSet bf->run_state eariler for planning
Joseph Coffland [Sun, 11 Sep 2016 15:24:56 +0000 (08:24 -0700)]
Set bf->run_state eariler for planning

9 years agoMerge branch 'master' into skip-non-plan
Joseph Coffland [Sun, 11 Sep 2016 15:22:20 +0000 (08:22 -0700)]
Merge branch 'master' into skip-non-plan

9 years agoFixed target calculation
Joseph Coffland [Sun, 11 Sep 2016 15:22:11 +0000 (08:22 -0700)]
Fixed target calculation

9 years agoWork in progress
Joseph Coffland [Sun, 11 Sep 2016 14:51:33 +0000 (07:51 -0700)]
Work in progress

9 years agouse inline functions instead of defines
Joseph Coffland [Sun, 11 Sep 2016 14:49:36 +0000 (07:49 -0700)]
use inline functions instead of defines

9 years agoUse spindle and feed overrides
Joseph Coffland [Sun, 11 Sep 2016 13:11:03 +0000 (06:11 -0700)]
Use spindle and feed overrides

9 years agoFix feed/speed override parsing
Joseph Coffland [Sun, 11 Sep 2016 12:55:29 +0000 (05:55 -0700)]
Fix feed/speed override parsing

9 years agoCode cleanup
Joseph Coffland [Sun, 11 Sep 2016 12:37:41 +0000 (05:37 -0700)]
Code cleanup

9 years agoboolean flags in parser
Joseph Coffland [Sun, 11 Sep 2016 12:03:53 +0000 (05:03 -0700)]
boolean flags in parser

9 years agoFully encapsulated mach
Joseph Coffland [Sun, 11 Sep 2016 11:24:38 +0000 (04:24 -0700)]
Fully encapsulated mach

9 years agoImplemented runtime tool change, added more arc error checking
Joseph Coffland [Sun, 11 Sep 2016 10:49:27 +0000 (03:49 -0700)]
Implemented runtime tool change, added more arc error checking

9 years agoRemoved plan/command.c, Moved CM_ALARM
Joseph Coffland [Sun, 11 Sep 2016 09:07:05 +0000 (02:07 -0700)]
Removed plan/command.c, Moved CM_ALARM

9 years agoSplit machine.{c,h}
Joseph Coffland [Sat, 10 Sep 2016 13:05:02 +0000 (06:05 -0700)]
Split machine.{c,h}

9 years agoMachine encapsulation
Joseph Coffland [Sat, 10 Sep 2016 12:36:43 +0000 (05:36 -0700)]
Machine encapsulation

9 years agonames
Joseph Coffland [Sat, 10 Sep 2016 11:53:39 +0000 (04:53 -0700)]
names

9 years agoCleaned up buffer.c
Joseph Coffland [Sat, 10 Sep 2016 11:23:55 +0000 (04:23 -0700)]
Cleaned up buffer.c

9 years agoCleaned up buffer.c
Joseph Coffland [Sat, 10 Sep 2016 11:21:14 +0000 (04:21 -0700)]
Cleaned up buffer.c

9 years agoMore encapsulation, made some queue commands unsynchronized, final arc move to actual...
Joseph Coffland [Sat, 10 Sep 2016 09:59:00 +0000 (02:59 -0700)]
More encapsulation, made some queue commands unsynchronized, final arc move to actual target, always return a write buffer

9 years agoFix feed rate mode handling
Joseph Coffland [Sat, 10 Sep 2016 07:38:33 +0000 (00:38 -0700)]
Fix feed rate mode handling

9 years agoSmooth move transitions, enforce move generation with alarm, wait a bit for planner...
Joseph Coffland [Sat, 10 Sep 2016 07:00:44 +0000 (00:00 -0700)]
Smooth move transitions, enforce move generation with alarm, wait a bit for planner to fill before moving.

9 years agoCleaned up line planning code
Joseph Coffland [Sat, 10 Sep 2016 03:02:12 +0000 (20:02 -0700)]
Cleaned up line planning code

9 years agoKeep executing planner buffers until one produces a move. Arc cleanup
Joseph Coffland [Thu, 8 Sep 2016 11:56:52 +0000 (04:56 -0700)]
Keep executing planner buffers until one produces a move.  Arc cleanup

9 years agoReport GCode state #18, Eliminated move_state_t struct, Reorg of spindle code
Joseph Coffland [Thu, 8 Sep 2016 10:45:07 +0000 (03:45 -0700)]
Report GCode state #18, Eliminated move_state_t struct, Reorg of spindle code

9 years agoImplemented axis zeroing. Start AVR in flushing mode, #10
Joseph Coffland [Thu, 8 Sep 2016 07:29:22 +0000 (00:29 -0700)]
Implemented axis zeroing.  Start AVR in flushing mode, #10

9 years agoFixed several bugs, cleaned up util.c, Automatically deallocate planning buffers...
Joseph Coffland [Tue, 6 Sep 2016 08:56:56 +0000 (01:56 -0700)]
Fixed several bugs, cleaned up util.c, Automatically deallocate planning buffers and manage state, Fixed hold planning.

9 years agoMore consistent variable naming style
Joseph Coffland [Mon, 5 Sep 2016 23:09:05 +0000 (16:09 -0700)]
More consistent variable naming style

9 years agoRevert usart_readline() change
Joseph Coffland [Mon, 5 Sep 2016 21:25:20 +0000 (14:25 -0700)]
Revert usart_readline() change

9 years agoUppercase status strings, Don't enable read interrupt immediately in usart_readline...
Joseph Coffland [Mon, 5 Sep 2016 21:12:31 +0000 (14:12 -0700)]
Uppercase status strings, Don't enable read interrupt immediately in usart_readline(), Disabled alarm in mach_set_position()

9 years agoWorking on jog
Joseph Coffland [Mon, 5 Sep 2016 11:49:41 +0000 (04:49 -0700)]
Working on jog

9 years agoSplit exec.c from runtime.c
Joseph Coffland [Mon, 5 Sep 2016 10:06:49 +0000 (03:06 -0700)]
Split exec.c from runtime.c

9 years agoFunction renaming, planner reorg and runtime state encapsulation.
Joseph Coffland [Mon, 5 Sep 2016 03:08:25 +0000 (20:08 -0700)]
Function renaming, planner reorg and runtime state encapsulation.

9 years agoAlarm if machine position is set while the machine is moving
Joseph Coffland [Mon, 5 Sep 2016 01:23:29 +0000 (18:23 -0700)]
Alarm if machine position is set while the machine is moving

9 years agoReport current units
Joseph Coffland [Sat, 3 Sep 2016 22:37:05 +0000 (15:37 -0700)]
Report current units

9 years agoCorrectly implemented start/stop/pause and queue flushing
Joseph Coffland [Fri, 2 Sep 2016 09:07:20 +0000 (02:07 -0700)]
Correctly implemented start/stop/pause and queue flushing

9 years agoGreatly simplified feedhold processing
Joseph Coffland [Fri, 2 Sep 2016 01:00:22 +0000 (18:00 -0700)]
Greatly simplified feedhold processing

9 years agoMove code and doc cleanup, simplified plan/exec.c
Joseph Coffland [Thu, 1 Sep 2016 21:14:41 +0000 (14:14 -0700)]
Move code and doc cleanup, simplified plan/exec.c

9 years agoMore code cleanup, fixed program stop
Joseph Coffland [Tue, 30 Aug 2016 09:31:11 +0000 (02:31 -0700)]
More code cleanup, fixed program stop

9 years agoDumped JERK_EXEC and KAHN code
Joseph Coffland [Tue, 30 Aug 2016 07:55:24 +0000 (00:55 -0700)]
Dumped JERK_EXEC and KAHN code

9 years agoDocs and code organization
Joseph Coffland [Tue, 30 Aug 2016 07:09:41 +0000 (00:09 -0700)]
Docs and code organization

9 years agoDocumentation and code cleanup
Joseph Coffland [Sun, 28 Aug 2016 22:11:56 +0000 (15:11 -0700)]
Documentation and code cleanup

9 years agoInitialize structs
Joseph Coffland [Sun, 28 Aug 2016 06:20:23 +0000 (23:20 -0700)]
Initialize structs

9 years agoModularized homing and probing code
Joseph Coffland [Sun, 28 Aug 2016 05:50:46 +0000 (22:50 -0700)]
Modularized homing and probing code

9 years agoConsolidated planner calculations and feedhold state
Joseph Coffland [Sun, 28 Aug 2016 02:34:06 +0000 (19:34 -0700)]
Consolidated planner calculations and feedhold state

9 years agoIsolated planner state from machine
Joseph Coffland [Sun, 28 Aug 2016 01:56:19 +0000 (18:56 -0700)]
Isolated planner state from machine

9 years agoIDLE->READY, Added speed, feed and tool vars back in
Joseph Coffland [Sun, 28 Aug 2016 00:13:28 +0000 (17:13 -0700)]
IDLE->READY, Added speed, feed and tool vars back in

9 years agoReintroduced machine cycle state
Joseph Coffland [Sat, 27 Aug 2016 21:18:30 +0000 (14:18 -0700)]
Reintroduced machine cycle state

9 years agoReworked machine state variables
Joseph Coffland [Thu, 25 Aug 2016 10:28:15 +0000 (03:28 -0700)]
Reworked machine state variables

9 years agoFixed error message
Joseph Coffland [Tue, 23 Aug 2016 07:10:53 +0000 (00:10 -0700)]
Fixed error message

9 years agoRoll back flush ID code, Skip some callbacks in EStop
Joseph Coffland [Tue, 23 Aug 2016 06:23:04 +0000 (23:23 -0700)]
Roll back flush ID code, Skip some callbacks in EStop

9 years agoReboot on estop clear, save estop state in EEPROM, stop spindle, flush USART and...
Joseph Coffland [Tue, 23 Aug 2016 06:03:09 +0000 (23:03 -0700)]
Reboot on estop clear, save estop state in EEPROM, stop spindle, flush USART and wait for EEPROM write before reboot

9 years agoAdded i2c slave interface
Joseph Coffland [Wed, 27 Jul 2016 22:46:19 +0000 (15:46 -0700)]
Added i2c slave interface

9 years agoMore cleanup
Joseph Coffland [Wed, 6 Jul 2016 11:57:55 +0000 (04:57 -0700)]
More cleanup

9 years agoClean up
Joseph Coffland [Wed, 6 Jul 2016 11:42:52 +0000 (04:42 -0700)]
Clean up

9 years agoRemoved main loop blocking
Joseph Coffland [Wed, 6 Jul 2016 11:29:34 +0000 (04:29 -0700)]
Removed main loop blocking

9 years agoignore
Joseph Coffland [Tue, 5 Jul 2016 09:27:39 +0000 (02:27 -0700)]
ignore

9 years agoEnable spindle
Joseph Coffland [Tue, 5 Jul 2016 08:32:56 +0000 (01:32 -0700)]
Enable spindle

9 years agoAdded verify command
Joseph Coffland [Tue, 5 Jul 2016 08:32:40 +0000 (01:32 -0700)]
Added verify command

9 years agoFixed estop
Joseph Coffland [Tue, 5 Jul 2016 08:32:34 +0000 (01:32 -0700)]
Fixed estop

9 years agoAllow unsaved vars, Work on switches and estop
Joseph Coffland [Wed, 29 Jun 2016 04:45:20 +0000 (21:45 -0700)]
Allow unsaved vars, Work on switches and estop

9 years agoAdded missing files, fixed switches interrupts
Joseph Coffland [Tue, 28 Jun 2016 12:28:17 +0000 (05:28 -0700)]
Added missing files, fixed switches interrupts

9 years agoImplemented better pin mapping
Joseph Coffland [Tue, 28 Jun 2016 10:12:54 +0000 (03:12 -0700)]
Implemented better pin mapping

9 years agoImproved usart_readline(), Improved help, Added feedhold, start cycle & flush queue...
Joseph Coffland [Mon, 27 Jun 2016 10:42:47 +0000 (03:42 -0700)]
Improved usart_readline(), Improved help, Added feedhold, start cycle & flush queue character commands

9 years agoUse only 2 char var codes, Enabled serial hardware flow control, Reorder command...
Joseph Coffland [Sun, 26 Jun 2016 19:15:37 +0000 (12:15 -0700)]
Use only 2 char var codes, Enabled serial hardware flow control, Reorder command processing priority

9 years agoReport JSON errors
Joseph Coffland [Thu, 23 Jun 2016 23:58:20 +0000 (16:58 -0700)]
Report JSON errors

9 years agoUppercase macro
Joseph Coffland [Thu, 23 Jun 2016 23:44:09 +0000 (16:44 -0700)]
Uppercase macro

9 years agoNamespace STAT_MSG macro
Joseph Coffland [Thu, 23 Jun 2016 23:42:12 +0000 (16:42 -0700)]
Namespace STAT_MSG macro

9 years agoTotally DRY status messages using X-Macros
Joseph Coffland [Thu, 23 Jun 2016 23:40:31 +0000 (16:40 -0700)]
Totally DRY status messages using X-Macros

9 years agoprint JSON
Joseph Coffland [Wed, 22 Jun 2016 08:01:37 +0000 (01:01 -0700)]
print JSON

9 years agoRemoved current ramping
Joseph Coffland [Mon, 20 Jun 2016 10:30:53 +0000 (03:30 -0700)]
Removed current ramping

9 years agoWorking with current ramping
Joseph Coffland [Mon, 20 Jun 2016 10:28:51 +0000 (03:28 -0700)]
Working with current ramping

9 years agoAdded estop control, improved cm_alarm, Improved tmc2660 driver, temporarily disabled...
Joseph Coffland [Sun, 19 Jun 2016 19:14:06 +0000 (12:14 -0700)]
Added estop control, improved cm_alarm, Improved tmc2660 driver, temporarily disabled switch and spindle, improved status message printing and dispatch loop

9 years agoHandle RTC wrap around
Joseph Coffland [Sat, 18 Jun 2016 23:26:13 +0000 (16:26 -0700)]
Handle RTC wrap around

9 years agoSerial port improvements
Joseph Coffland [Sat, 18 Jun 2016 23:23:18 +0000 (16:23 -0700)]
Serial port improvements

9 years agoHuanyang reports
Joseph Coffland [Tue, 7 Jun 2016 15:39:53 +0000 (08:39 -0700)]
Huanyang reports

9 years agoWork on switch handling, coolant load switches
Joseph Coffland [Thu, 26 May 2016 06:13:54 +0000 (23:13 -0700)]
Work on switch handling, coolant load switches

9 years agoPWM spindle
Joseph Coffland [Wed, 25 May 2016 09:10:38 +0000 (02:10 -0700)]
PWM spindle

9 years agomotor calibration, haunyang spindle control
Joseph Coffland [Wed, 25 May 2016 06:02:50 +0000 (23:02 -0700)]
motor calibration, haunyang spindle control

9 years agosg threshold calibration routine 2
Joseph Coffland [Mon, 11 Apr 2016 03:10:16 +0000 (20:10 -0700)]
sg threshold calibration routine 2

9 years agoDisable echo, velocity vs. sg threshold calibration routine
Joseph Coffland [Sun, 10 Apr 2016 23:21:44 +0000 (16:21 -0700)]
Disable echo, velocity vs. sg threshold calibration routine

9 years agoRemove kienmatics.{c,h}
Joseph Coffland [Tue, 29 Mar 2016 12:33:23 +0000 (05:33 -0700)]
Remove kienmatics.{c,h}

9 years agoCleaned up unused status messages
Joseph Coffland [Tue, 29 Mar 2016 12:26:55 +0000 (05:26 -0700)]
Cleaned up unused status messages

9 years agoCleaned up canonical machine and reduced memory usage
Joseph Coffland [Tue, 29 Mar 2016 11:48:56 +0000 (04:48 -0700)]
Cleaned up canonical machine and reduced memory usage

9 years agoConfig variables for idle and drive currents, Faster motor driver config updates...
Joseph Coffland [Tue, 29 Mar 2016 05:46:20 +0000 (22:46 -0700)]
Config variables for idle and drive currents, Faster motor driver config updates, Faster driver SPI

9 years agoStepper driver tweaks. Seems to run well.
Joseph Coffland [Sun, 27 Mar 2016 22:51:51 +0000 (15:51 -0700)]
Stepper driver tweaks.  Seems to run well.

9 years agoDMA channels to count motor pulses, more reorg, much faster motor SPI
Joseph Coffland [Sun, 27 Mar 2016 13:24:47 +0000 (06:24 -0700)]
DMA channels to count motor pulses, more reorg, much faster motor SPI

9 years agoRemoved controller and encoder, reorg of hardware, use DMA channels to count motor...
Joseph Coffland [Sun, 27 Mar 2016 08:03:10 +0000 (01:03 -0700)]
Removed controller and encoder, reorg of hardware, use DMA channels to count motor pulses