-
Notifications
You must be signed in to change notification settings - Fork 15
/
Drone.h
49 lines (40 loc) · 1.34 KB
/
Drone.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/***************************************************************************
* *
* Copyright (C) 2017 by University of Illinois *
* *
* http://illinois.edu *
* *
***************************************************************************/
/**
* @file Drone.h
*
* A Drone object stores raw measurements fetched from Vicon.
*
* @author Bo Liu <boliu1@illinois.edu>
*
*/
#ifndef DRONE_H
#define DRONE_H
#include <QString>
#include <lib/MAVLink2/common/mavlink.h>
class Drone
{
public:
Drone();
virtual ~Drone();
Drone(QString droneName, double x, double y, double z, double q_0, double q_1, double q_2, double q_3);
Drone(QString droneName);
QString getName() const;
void setName(const QString &value);
mavlink_att_pos_mocap_t getPos() const;
mavlink_att_pos_mocap_t getPos(long long& ret_frame) const;
void setPos(const mavlink_att_pos_mocap_t &value);
void reset();
long long getTime() const;
void setTime(long long value);
private:
QString name;
mavlink_att_pos_mocap_t pos;
long long frame;
};
#endif // DRONE_H