+++ /dev/null
-/******************************************************************************\
-
- 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 <http://www.gnu.org/licenses/>.
-
- 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
- <http://www.gnu.org/licenses/>.
-
- For information regarding this software email:
- "Joseph Coffland" <joseph@buildbotics.com>
-
-\******************************************************************************/
-
-#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);}
+++ /dev/null
-/******************************************************************************\
-
- 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 <http://www.gnu.org/licenses/>.
-
- 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
- <http://www.gnu.org/licenses/>.
-
- For information regarding this software email:
- "Joseph Coffland" <joseph@buildbotics.com>
-
-\******************************************************************************/
-
-#pragma once
-
-#include <stdbool.h>
-
-
-void coolant_init();
-void coolant_set_mist(bool x);
-void coolant_set_flood(bool x);
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")
}
-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() {}