Files
gcs-nf/App/ToolsUI/ServoSystem/ServoSystem.h
T

43 lines
692 B
C++
Raw Normal View History

2020-12-08 22:21:52 +08:00
#ifndef SERVOSYSTEM_H
2020-10-06 17:11:59 +08:00
#define SERVOSYSTEM_H
#include <QWidget>
2021-01-07 10:55:02 +08:00
#include "ToolsUI/ToolsWidget.h"
2020-10-06 17:11:59 +08:00
2020-12-09 11:49:59 +08:00
#include "Config/Config.h"
2020-10-06 17:11:59 +08:00
namespace Ui {
class ServoSystem;
}
2021-01-07 10:55:02 +08:00
class ServoSystem : public ToolsWidget
2020-10-06 17:11:59 +08:00
{
Q_OBJECT
public:
explicit ServoSystem(QWidget *parent = nullptr);
~ServoSystem();
2020-10-07 19:50:45 +08:00
private slots:
public slots:
2020-10-14 21:28:47 +08:00
void setCheckState(uint32_t pos,QVariant value);
2020-10-07 19:50:45 +08:00
void setBUMState(mavlink_bmustate_t *t);
2020-12-26 15:17:45 +08:00
void setServoState(mavlink_servo_output_raw_t t);
2020-10-07 19:50:45 +08:00
2020-10-06 17:11:59 +08:00
private:
Ui::ServoSystem *ui;
2020-10-14 21:28:47 +08:00
2020-12-08 22:21:52 +08:00
float m_la = 0;
float m_ra = 0;
float m_le = 0;
float m_re = 0;
float m_ru = 0;
2020-10-14 21:28:47 +08:00
2020-10-06 17:11:59 +08:00
};
#endif // SERVOSYSTEM_H