-
Notifications
You must be signed in to change notification settings - Fork 0
/
drone.h
68 lines (57 loc) · 1.47 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef DRONE_H
#define DRONE_H
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include <QGeoCoordinate>
#include "dronepath.h"
class Drone {
public:
struct location{
double latitude;
double longitude;
double altitude;
};
struct Vector{
double x_vec;
double y_vec;
double z_vec;
};
double getLatitude() const;
void setLatitude(double latitude);
double getLongitude() const;
void setLongitude(double longitude);
double getAltitude() const;
void setAltitude(double altitude);
double getXVec() const;
void setXVec(double xVec);
double getYVec() const;
void setYVec(double yVec);
double getZVec() const;
void setZVec(double zVec);
QGeoCoordinate getPosition();
Drone(double latitude, double longitude, double altitude);
Drone(double latitude, double longitude, double altitude, double xVec, double yVec, double zVec);
Drone();
QWidget *getRoot();
private:
QGroupBox * root;
QLineEdit *latEdit;
QLineEdit *lngEdit;
QLineEdit *altEdit;
QGeoCoordinate current;
Vector velocity;
//DronePath path;
/**
mainWin.cpp remove droen code with simulator
add drone.addCp()
add new model for cp
add curve function
check conncetivity
*/
};
#endif // DRONE_H