1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-09 05:40:46 +02:00
Commit Graph

1021 Commits

Author SHA1 Message Date
Stefan de Bruijn
7d5c9a68bd Implemented remaining uart pinuser code. (for now) 2020-11-03 13:01:26 +01:00
bdring
205e0bd5cf Machine Definition Cleanup (#658)
- Removed machine definitions to speed up testing.
- Moved 6 pack CS/MS3 pins with other axis pins to help them stay in sync with the aixs letters
2020-11-02 15:35:14 -06:00
bdring
44cd6f8954 Trinamic reporting (#656)
* Enhanced reporting of errors

* Change "motor" to "driver" for clarity.

* Added better way to show changed Setting values from Mitch

* Update build date
2020-11-02 15:34:29 -06:00
Stefan de Bruijn
8835c4f2ed Merged back with devt 2020-11-01 22:19:07 +01:00
Stefan de Bruijn
5a1daa3ff5 Fixed a few small pin issues in custom code. 2020-11-01 22:13:06 +01:00
Pete Wildsmith
54d78582ea TMC2130 plotter machine servo config update (#657)
* TMC2130 plotter machine servo config update

based on Slack conversation https://buildlog.slack.com/archives/CBZKZ8LHL/p1604243530253000

* Update Grbl.h
2020-11-01 10:16:26 -06:00
Stefan de Bruijn
25d2426051 Fixed 2 small bugs 2020-11-01 10:04:46 +01:00
Stefan de Bruijn
7b03eab9f9 Fixed BDring's PC 6pack 2020-11-01 09:56:58 +01:00
Stefan de Bruijn
94c858b879 Merge branch 'PinClass' of https://github.com/atlaste/Grbl_Esp32 into PinClass 2020-11-01 09:30:58 +01:00
Stefan de Bruijn
5120ebfe13 Changed all machine definitions 2020-11-01 09:30:50 +01:00
bdring
4bb15bee16 Create 6_pack_stepstick_XYZ_pc.h 2020-10-31 13:43:20 -05:00
Stefan de Bruijn
4617dd9537 Fixed initialization order of I2SO. Works now. 2020-10-31 14:42:06 +01:00
Stefan de Bruijn
886618e8bc Fixed initialization order. Settings must go first! 2020-10-31 12:57:07 +01:00
Stefan de Bruijn
3d5a9da1e5 Merged Devt back 2020-10-31 12:50:00 +01:00
Stefan de Bruijn
945625f19d Fixed most of the feedback from GIT (thanks gents!). SPI/I2SO should be working now. [not tested] 2020-10-31 12:33:28 +01:00
Stefan de Bruijn
77bf6f0696 Merge branch 'PinClass' of https://github.com/atlaste/Grbl_Esp32 into PinClass 2020-10-31 11:47:39 +01:00
Stefan de Bruijn
a93fc58866 Re-instated assertion. 2020-10-30 14:11:26 +01:00
Stefan de Bruijn
2a99442e35 Added I2S test to test_drive machine.. Fixed multiple I2S bugs 2020-10-30 13:10:42 +01:00
Stefan de Bruijn
6d77f76ac6 Space 2020-10-29 21:02:34 +01:00
Stefan de Bruijn
162105c58e Added more tests. 2020-10-29 20:49:15 +01:00
Mitch Bradley
0e19f1e583 Added $A AKA Alarms/List command (#654)
* Added $A AKA Alarms/List command

Similar to $E AKA Errors/List

$E used to be AKA ErrorCodes/List

Also added $Errors/Verbose setting to display
full error text instead of the error number.
It defaults to true because it works with every
sender I have tried so far - cncjs, UGS, and Chrome
GCode Sender.  If you have problems with some sender
you can set it to false.

* Added static_assert per atlaste's comment

* Added a default and fixed Authentication issue

Co-authored-by: bdring <barton.dring@gmail.com>
2020-10-29 14:25:33 -05:00
Stefan de Bruijn
92e07eee5d Tested probe pin. 2020-10-29 20:17:35 +01:00
Stefan de Bruijn
5df89d19cc Fixed DebugPinDetail flooding/messages 2020-10-29 15:28:05 +01:00
Stefan de Bruijn
5481793252 Added a mutex to report.h // send. I thought I spotted concurrency issues, and it does little harm.
Fixed bug with debug pins writing to everything.
Fixed infinite recursion bug in DebugPinDetail
2020-10-29 15:18:41 +01:00
Stefan de Bruijn
85556b4dde Updated using pin capabilities for pullups
Made backtraces for all assertions, not just unit testing.
2020-10-28 21:53:40 +01:00
bdring
13f6b37031 Move CoreXY out of main Grbl (#653)
* Created branch

* WIP

* Update parallel_delta.cpp

* Wip

* WIP

* Wip

* Still working on kinematics

- Added an interface into the jogging section

* WIP

* WIP

* wip

* WIP

* WIP

* Wip

* WIP

* WIP

* Wip

* Update machine defs

* Created branch

* WIP

* Update parallel_delta.cpp

* Wip

* WIP

* Wip

* Still working on kinematics

- Added an interface into the jogging section

* WIP

* WIP

* wip

* WIP

* WIP

* Wip

* WIP

* WIP

* Wip

* Update machine defs

* Machine def change. Moved switches to module 1

* WIP

* Cleanup before P.R.

- Fixed ranges for delta geometry
- Added post homing delay option for servos
- renamed and removed old machine defs.

* Fixing initialization problem when not in USE_KINEMATICS mode

* Fixing Git Mess

* Publishing Branch

- Not ready yet. Issues with Z axis
- Need to add midTbot option

* WIP

- Seems to be fully functional now.
- Need to add midTbot option.

* Update CoreXY.cpp

* I think it is ready for PR

- fixed $RST=#
- added midTbot geometry factor

* Fine tune midtbot definition

* Removed more unneeded corexy code.

* Fixed doubled #define in machine def file.

* Update after review comments
2020-10-28 09:21:06 -05:00
Stefan de Bruijn
77c4ca4fe8 Fixed a few bugs with ISR binding. Basically you should never call attachInterrupt without an ISR setMode; the pin might not support it after all. 2020-10-28 09:22:28 +01:00
Stefan de Bruijn
463c92babf Changed ISR attachment a bit. It should trigger on PinCapabilities, not PinAttributes 2020-10-28 08:48:52 +01:00
Stefan de Bruijn
5f1cad9dac Fixed stupid bug 2020-10-26 14:19:22 +01:00
Stefan de Bruijn
82d97745a2 Fixed PU/PD support. 2020-10-26 09:26:38 +01:00
Stefan de Bruijn
270029fd75 Made pin parsing more robust. Added some tests 2020-10-26 09:23:45 +01:00
Stefan de Bruijn
b79b907a46 Fixed a few bugs in Pin.cpp. Added key-value pair support in PinOptionsParser. 2020-10-26 09:19:58 +01:00
Stefan de Bruijn
dcea7bcc17 Fixed little bug 2020-10-24 11:39:38 +02:00
Stefan de Bruijn
10151863d7 Implemented most of the Uart functionality as a proof-of-principle. Not tested or being used; this is mainly for checking if important parts are missing in the api. 2020-10-24 11:37:25 +02:00
Stefan de Bruijn
2822cc5268 Disabled debug setting 2020-10-23 22:50:02 +02:00
Stefan de Bruijn
171f4047f1 Fixed a lot of bugs in pin details. Basically, pins are now re-used if needed (such as 'undefined'), and construction doesn't do any hardware pin initialization. RAII is enforced. Grbl starts. 2020-10-23 22:48:10 +02:00
bdring
44c61a35e5 Merge branch 'main' into Devt 2020-10-22 20:52:57 -05:00
bdring
8c01797c3b Add coolant pin messages to startup (#647)
* Add coolant pin messages to startup

Help with user support.

* Removing incorrect STEPPER_RESET definition

* Fix laser mode startup message

* cleanup

- coolant_init() will behave as before
- update build date
- return default machine to test_drive
2020-10-22 19:19:56 -05:00
Stefan de Bruijn
c1cc423572 Fixed signature of ++ operator 2020-10-22 20:34:52 +02:00
Stefan de Bruijn
9c788d650a Merged with Mitch' input 2020-10-22 20:27:00 +02:00
Stefan de Bruijn
d5143f5c9d Added some unit tests; fixed pin option parser. 2020-10-22 20:16:27 +02:00
Mitch Bradley
c4df41685c Various Pin fixes
Undefined pin name is the empty string
Fixed PinOptions iterator so option parsing works
Added $P and $PC commands to show pins
Renamed pin settings to conform to the plan
Pin options should set attributes, not capabilities.  Capabilities are
immutable properties of a hardware pin, while attributes tell how we
want to use it.
Active state (high or low) is a (usage) attribute, not a capability
Check GPIO pin number
Added throw to GPIO constructor so errors can be reported ... but

That is not the right way; we need a separate check function that
can be used both by the constructor and the settings checker, because
the constructor may have side effects that should not happen during
checking.
2020-10-21 23:13:17 -10:00
Stefan de Bruijn
04690ed6cf Fixed initialization of _currentValue 2020-10-20 22:02:24 +02:00
Stefan de Bruijn
e24d33d8a0 Removed PWM for now. Should do this different anyways.
Added debug mode to pin class. Uncomment "PIN_DEBUG" in Pin.h for debug mode, which should dump a lot of info to your serial.
2020-10-20 21:33:13 +02:00
Stefan de Bruijn
3cbe138cb8 Fixed a few bugs. Build-all runs now. 2020-10-20 20:33:53 +02:00
Stefan de Bruijn
5d6052dc3c Forgot a few pins. Fixed that. TODO FIXME: system_ini 2020-10-20 17:13:35 +02:00
Stefan de Bruijn
f9cb4bb653 Fixed unit tests project due to packages mess. 2020-10-20 13:29:47 +02:00
Stefan de Bruijn
fe3bb7c5d6 Removed packages that shouldn't be there. 2020-10-20 13:24:18 +02:00
Stefan de Bruijn
672566ebf6 Added pin unit tests and unit test framework. 2020-10-20 12:58:59 +02:00
Stefan de Bruijn
f089ed8b79 Made everything compile again. This should be a first working version. 2020-10-20 12:37:02 +02:00