43 lines
692 B
C++
43 lines
692 B
C++
#ifndef SERVOSYSTEM_H
|
|
#define SERVOSYSTEM_H
|
|
|
|
#include <QWidget>
|
|
#include "ToolsUI/ToolsWidget.h"
|
|
|
|
|
|
#include "Config/Config.h"
|
|
|
|
namespace Ui {
|
|
class ServoSystem;
|
|
}
|
|
|
|
class ServoSystem : public ToolsWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ServoSystem(QWidget *parent = nullptr);
|
|
~ServoSystem();
|
|
|
|
private slots:
|
|
|
|
|
|
public slots:
|
|
|
|
void setCheckState(uint32_t pos,QVariant value);
|
|
void setBUMState(mavlink_bmustate_t *t);
|
|
void setServoState(mavlink_servo_output_raw_t t);
|
|
|
|
private:
|
|
Ui::ServoSystem *ui;
|
|
|
|
float m_la = 0;
|
|
float m_ra = 0;
|
|
float m_le = 0;
|
|
float m_re = 0;
|
|
float m_ru = 0;
|
|
|
|
};
|
|
|
|
#endif // SERVOSYSTEM_H
|