Page MenuHomec4science

mainwindow.h
No OneTemporary

File Metadata

Created
Mon, Jul 21, 08:56

mainwindow.h

#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