From: Joseph Coffland Date: Mon, 15 Jan 2018 00:04:49 +0000 (-0800) Subject: Removed coolant X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=c4bc7a5609de6349bc04b154baec1779dc2f7a31;p=bbctrl-firmware Removed coolant --- diff --git a/src/avr/src/coolant.c b/src/avr/src/coolant.c deleted file mode 100644 index 4f8fa36..0000000 --- a/src/avr/src/coolant.c +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************\ - - This file is part of the Buildbotics firmware. - - Copyright (c) 2015 - 2017 Buildbotics LLC - All rights reserved. - - This file ("the software") is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License, - version 2 as published by the Free Software Foundation. You should - have received a copy of the GNU General Public License, version 2 - along with the software. If not, see . - - The software is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the software. If not, see - . - - For information regarding this software email: - "Joseph Coffland" - -\******************************************************************************/ - -#include "coolant.h" - -#include "config.h" -#include "outputs.h" - - -void coolant_init() {} - - -void coolant_set_mist(bool x) {outputs_set_active(SWITCH_1_PIN, x);} -void coolant_set_flood(bool x) {outputs_set_active(SWITCH_2_PIN, x);} -bool coolant_get_mist() {return outputs_is_active(SWITCH_1_PIN);} -bool coolant_get_flood() {return outputs_is_active(SWITCH_2_PIN);} diff --git a/src/avr/src/coolant.h b/src/avr/src/coolant.h deleted file mode 100644 index f3cfed0..0000000 --- a/src/avr/src/coolant.h +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************\ - - This file is part of the Buildbotics firmware. - - Copyright (c) 2015 - 2017 Buildbotics LLC - All rights reserved. - - This file ("the software") is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License, - version 2 as published by the Free Software Foundation. You should - have received a copy of the GNU General Public License, version 2 - along with the software. If not, see . - - The software is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the software. If not, see - . - - For information regarding this software email: - "Joseph Coffland" - -\******************************************************************************/ - -#pragma once - -#include - - -void coolant_init(); -void coolant_set_mist(bool x); -void coolant_set_flood(bool x); diff --git a/src/avr/src/vars.def b/src/avr/src/vars.def index d19fe5d..897c070 100644 --- a/src/avr/src/vars.def +++ b/src/avr/src/vars.def @@ -118,8 +118,6 @@ VAR(speed, s, f32, 0, 1, 1, "Current spindle speed") VAR(tool, t, u8, 0, 1, 1, "Current tool") VAR(feed_override, fo, f32, 0, 1, 1, "Feed rate override") VAR(speed_override, so, f32, 0, 1, 1, "Spindle speed override") -VAR(mist_coolant, mc, bool, 0, 1, 1, "Mist coolant enabled") -VAR(flood_coolant, fc, bool, 0, 1, 1, "Flood coolant enabled") // System VAR(velocity, v, f32, 0, 0, 1, "Current velocity") diff --git a/src/avr/test/hal.c b/src/avr/test/hal.c index f4119df..ad89f25 100644 --- a/src/avr/test/hal.c +++ b/src/avr/test/hal.c @@ -109,8 +109,6 @@ char *usart_readline() { } -void coolant_set_mist(bool x) {DEBUG_CALL("%s", x ? "true" : "false");} -void coolant_set_flood(bool x) {DEBUG_CALL("%s", x ? "true" : "false");} void spindle_set_speed(float speed) {DEBUG_CALL("%f", speed);} void spindle_stop() {}