Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Smoothie by
ControlScreen.h
00001 /* 00002 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl). 00003 Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 00004 Smoothie 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 General Public License for more details. 00005 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>. 00006 */ 00007 00008 #ifndef CONTROLSCREEN_H 00009 #define CONTROLSCREEN_H 00010 00011 #include "PanelScreen.h" 00012 00013 #define NULL_CONTROL_MODE 0 00014 #define AXIS_CONTROL_MODE 1 00015 #define INCREMENT_SELECTION_MODE 2 00016 00017 class ControlScreen : public PanelScreen 00018 { 00019 public: 00020 ControlScreen(); 00021 void on_main_loop(); 00022 void on_refresh(); 00023 void on_enter(); 00024 void display_menu_line(uint16_t line); 00025 void set_jog_increment(float i) { jog_increment = i;} 00026 int idle_timeout_secs() { return 120; } 00027 00028 private: 00029 void clicked_menu_entry(uint16_t line); 00030 void display_axis_line(char axis); 00031 void enter_axis_control(char axis); 00032 void enter_menu_control(); 00033 void get_current_pos(float *p); 00034 void set_current_pos(char axis, float p); 00035 char control_mode; 00036 char controlled_axis; 00037 float pos[3]; 00038 bool pos_changed; 00039 float jog_increment; 00040 }; 00041 00042 00043 00044 00045 00046 00047 #endif
Generated on Tue Jul 12 2022 20:09:00 by
1.7.2
