Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122647237
mainwindow.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 21, 08:56
Size
867 B
Mime Type
text/x-c++
Expires
Wed, Jul 23, 08:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27533923
Attached To
R2671 HHRI-software
mainwindow.h
View Options
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include "hriboard.h"
#include "syncvar.h"
namespace
Ui
{
class
MainWindow
;
}
/**
* @addtogroup DemoApp
* @{
*/
/**
* @brief Qt MainWindow with widgets to interact with SyncVars.
*/
class
MainWindow
:
public
QMainWindow
{
Q_OBJECT
public:
explicit
MainWindow
(
QWidget
*
parent
=
0
);
~
MainWindow
();
public
slots
:
void
onVarsListReceived
(
const
QList
<
SyncVar
>
&
syncVars
);
void
onVarsUpdated
();
void
setMotorTorque
();
private:
Ui
::
MainWindow
*
ui
;
///< Graphical user interface from the ui file.
HriBoard
hriBoard
;
///< HRI board interface.
SyncVarPointer
<
float
>
hallVoltage
;
///< SyncVar to access the Hall sensor voltage [V].
SyncVarPointer
<
float
>
motorTorque
;
///< SyncVar to access the motor torque [N.m].
};
/**
* @}
*/
#endif
Event Timeline
Log In to Comment