Merge remote-tracking branch 'upstream/edge' into upstream-master
[clinton/Smoothieware.git] / src / modules / utils / panel / screens / WatchScreen.h
CommitLineData
3f038f58 1/*
35089dc7
JM
2 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
3 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.
4 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.
3f038f58 5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
35089dc7
JM
6*/
7
8#ifndef WATCHSCREEN_H
9#define WATCHSCREEN_H
10
35089dc7
JM
11#include "PanelScreen.h"
12
c77d6dae
JM
13#include <tuple>
14
ca6effd7
JM
15class WatchScreen : public PanelScreen
16{
17public:
18 WatchScreen();
383c9c1c 19 ~WatchScreen();
ca6effd7
JM
20 void on_refresh();
21 void on_enter();
22 void on_main_loop();
23 void display_menu_line(uint16_t line);
24
25private:
c77d6dae 26 void get_current_status();
1ad23cd3 27 float get_current_speed();
ca6effd7 28 void set_speed();
1ad23cd3 29 void get_current_pos(float *cp);
ca6effd7
JM
30 void get_sd_play_info();
31 const char *get_status();
d4ee6ee2 32 const char *get_network();
3bfb2639 33
bab4e1bd 34 std::vector<uint16_t> temp_controllers;
ca6effd7 35
c77d6dae 36 uint32_t update_counts;
ca6effd7 37 int current_speed;
1ad23cd3 38 float pos[3];
ca6effd7
JM
39 unsigned long elapsed_time;
40 unsigned int sd_pcnt_played;
d4ee6ee2 41 char *ipstr;
c77d6dae
JM
42
43 struct {
44 bool speed_changed:1;
45 bool issue_change_speed:1;
46 bool fan_state:1;
47 };
35089dc7
JM
48};
49
35089dc7 50#endif