2 * RobomonTuning.h 07/10/31
4 * Robot's visualization and control GUI for robot of the
5 * Eurobot 2008 competition (Mission to Mars).
7 * Copyright: (c) 2008 DCE Eurobot Dragon Team
8 * CTU FEE - Department of Control Engineering
9 * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
10 * License: GNU GPL v.2
13 #ifndef ROBOMON_TUNING_H
14 #define ROBOMON_TUNING_H
20 #include "PlaygroundScene.h"
22 #include "robomon_orte.h"
23 #include <roboorte_robottype.h>
42 class RobomonTuning : public QWidget
47 RobomonTuning(QWidget *parent = 0);
50 bool event(QEvent *event);
51 void keyPressEvent(QKeyEvent *event);
52 void keyReleaseEvent(QKeyEvent *event);
53 void closeEvent(QCloseEvent *event);
58 /************************************************************
60 ************************************************************/
61 void setServos(int value);
62 void setMotors(int state);
63 void setPwrAlert(int state);
66 /************************************************************
68 ************************************************************/
70 /************************************************************
72 ************************************************************/
73 void createLeftLayout();
74 void createRightLayout();
76 void createMotorsGroupBox();
77 void createServosGroupBox();
78 void createPwrGroupBox();
79 void createCanGroupBox();
83 QGroupBox *enginesGroupBox;
84 QGroupBox *servosGroupBox;
85 QGroupBox *pwrGroupBox;
86 QGroupBox *canGroupBox;
88 QVBoxLayout *leftLayout;
89 QVBoxLayout *rightLayout;
97 QLineEdit *brushLeftLEdit;
98 QLineEdit *brushRightLEdit;
99 QLineEdit *liftPosLEdit;
100 QLineEdit *pusherLEdit;
103 QDial *servoBrushLeft;
104 QDial *servoBrushRight;
108 QLineEdit *servoBrushLeftLEdit;
109 QLineEdit *servoBrushRightLEdit;
110 QLineEdit *servoHolderLEdit;
111 QLineEdit *servoReserveLEdit;
121 QLineEdit *canMsgLen;
123 QPushButton *canSendPButton;
125 QCheckBox *pwrAlertCBox;
127 /************************************************************
129 ************************************************************/
132 struct robottype_orte_data orte;
135 #endif /* ROBOMON_TUNING_H */