-
Notifications
You must be signed in to change notification settings - Fork 2
/
PassCalculator.h
43 lines (25 loc) · 973 Bytes
/
PassCalculator.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
#ifndef PASSCALCULATOR_H
#define PASSCALCULATOR_H
#include <QObject>
#include "PassDetails.h"
#include "Satellite.h"
class PassCalculator : public QObject
{
Q_OBJECT
public:
explicit PassCalculator(QObject *parent = 0);
signals:
void listUpdated(const QList<PassDetails>& passList);
public slots:
void refresh();
void setObserversPosition(const CoordGeodetic &geo);
void setMiniumElevation(double elev);
private:
QList<PassDetails> passList;
CoordGeodetic obsPosition;
double miniumElevation;
double FindMaxElevation(const CoordGeodetic& user_geo, SGP4& sgp4, const DateTime& aos, const DateTime& los);
DateTime FindCrossingPoint(const CoordGeodetic& user_geo, SGP4& sgp4, DateTime time1,DateTime time2,bool finding_aos);
QList<PassDetails> GeneratePassList(const CoordGeodetic& user_geo, SGP4& sgp4, const DateTime& start_time, const DateTime& end_time, const int time_step);
};
#endif // PASSCALCULATOR_H