senseSoarMAV.h 626 Bytes
Newer Older
oberion's avatar
oberion committed
1
2
3
4
5
6
#ifndef _SENSESOARMAV_H_
#define _SENSESOARMAV_H_



#include "UAS.h"
7
#include "mavlink.h"
oberion's avatar
oberion committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <QTimer>


class senseSoarMAV : public UAS
{
	Q_OBJECT
	Q_INTERFACES(UASInterface)

public:
	senseSoarMAV(MAVLinkProtocol* mavlink, int id);
	~senseSoarMAV(void);
public slots:
    /** @brief Receive a MAVLink message from this MAV */
    void receiveMessage(LinkInterface* link, mavlink_message_t message);
protected:
	float m_rotVel[3]; // Rotational velocity in the body frame
oberion's avatar
oberion committed
24
	uint8_t senseSoarState;
oberion's avatar
oberion committed
25
26
27
28
private:
	void quat2euler(const double *quat, double &roll, double &pitch, double &yaw); 
};

29
#endif // _SENSESOARMAV_H_