1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-29 17:19:50 +02:00

Merge pull request #389 from bdring/Devt

Devt
This commit is contained in:
bdring
2020-04-28 15:19:41 -05:00
committed by GitHub
12 changed files with 48 additions and 70 deletions

View File

@@ -21,7 +21,7 @@
#include "grbl.h" #include "grbl.h"
#include "WiFi.h" #include "WiFi.h"
#include "tools/SpindleClass.cpp" #include "Spindles/SpindleClass.cpp"
// Declare system global variable structure // Declare system global variable structure
system_t sys; system_t sys;

View File

@@ -38,9 +38,6 @@
*/ */
#include "grbl.h"
#include "SpindleClass.h"
// don't change these // don't change these
#define BESC_PWM_FREQ 50.0f // Hz #define BESC_PWM_FREQ 50.0f // Hz
#define BESC_PWM_BIT_PRECISION 16 // bits #define BESC_PWM_BIT_PRECISION 16 // bits

View File

@@ -22,9 +22,6 @@
*/ */
#include "grbl.h"
#include "SpindleClass.h"
// ======================================== DacSpindle ====================================== // ======================================== DacSpindle ======================================
void DacSpindle :: init() { void DacSpindle :: init() {
get_pins_and_settings(); get_pins_and_settings();

View File

@@ -44,8 +44,6 @@
Add periodic pinging of VFD in run mode to see if it is still at correct RPM Add periodic pinging of VFD in run mode to see if it is still at correct RPM
*/ */
#include "grbl.h"
#include "SpindleClass.h"
#include "driver/uart.h" #include "driver/uart.h"
#define HUANYANG_ADDR 0x01 #define HUANYANG_ADDR 0x01

View File

@@ -20,9 +20,6 @@
*/ */
#include "grbl.h"
#include "SpindleClass.h"
// ===================================== Laser ============================================== // ===================================== Laser ==============================================

View File

@@ -19,8 +19,6 @@
along with Grbl. If not, see <http://www.gnu.org/licenses/>. along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "grbl.h"
#include "SpindleClass.h"
// ======================= NullSpindle ============================== // ======================= NullSpindle ==============================
// NullSpindle is just bunch of do nothing (ignore) methods to be used when you don't want a spindle // NullSpindle is just bunch of do nothing (ignore) methods to be used when you don't want a spindle

View File

@@ -19,8 +19,6 @@
along with Grbl. If not, see <http://www.gnu.org/licenses/>. along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "grbl.h"
#include "SpindleClass.h"
// ======================= PWMSpindle ============================== // ======================= PWMSpindle ==============================
/* /*

View File

@@ -19,8 +19,6 @@
along with Grbl. If not, see <http://www.gnu.org/licenses/>. along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "grbl.h"
#include "SpindleClass.h"
// ========================= RelaySpindle ================================== // ========================= RelaySpindle ==================================
/* /*

View File

@@ -32,8 +32,6 @@
SPINDLE_DIR_PIN SPINDLE_DIR_PIN
*/ */
#include "grbl.h"
#include "SpindleClass.h"
#include "NullSpindle.cpp" #include "NullSpindle.cpp"
#include "PWMSpindle.cpp" #include "PWMSpindle.cpp"
#include "DacSpindle.cpp" #include "DacSpindle.cpp"
@@ -95,5 +93,3 @@ void Spindle :: spindle_sync(uint8_t state, float rpm) {
protocol_buffer_synchronize(); // Empty planner buffer to ensure spindle is set when programmed. protocol_buffer_synchronize(); // Empty planner buffer to ensure spindle is set when programmed.
set_state(state, rpm); set_state(state, rpm);
} }

View File

@@ -38,7 +38,7 @@
#ifndef SPINDLE_CLASS_H #ifndef SPINDLE_CLASS_H
#define SPINDLE_CLASS_H #define SPINDLE_CLASS_H
#include "grbl.h" #include "../grbl.h"
#include <driver/dac.h> #include <driver/dac.h>
#include "driver/uart.h" #include "driver/uart.h"

View File

@@ -18,10 +18,11 @@
along with Grbl. If not, see <http://www.gnu.org/licenses/>. along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
// Grbl versioning system // Grbl versioning system
#define GRBL_VERSION "1.2a" #define GRBL_VERSION "1.2a"
#define GRBL_VERSION_BUILD "20200423" #define GRBL_VERSION_BUILD "20200428"
//#include <sdkconfig.h> //#include <sdkconfig.h>
#include <Arduino.h> #include <Arduino.h>
@@ -53,7 +54,7 @@
#include "protocol.h" #include "protocol.h"
#include "report.h" #include "report.h"
#include "serial.h" #include "serial.h"
#include "tools/SpindleClass.h" #include "Spindles/SpindleClass.h"
#include "stepper.h" #include "stepper.h"
#include "jog.h" #include "jog.h"
#include "inputbuffer.h" #include "inputbuffer.h"

View File

@@ -1,5 +1,3 @@
#include "grbl.h"
/* /*
stepper.c - stepper motor driver: executes motion plans using stepper motors stepper.c - stepper motor driver: executes motion plans using stepper motors
Part of Grbl Part of Grbl