-
Notifications
You must be signed in to change notification settings - Fork 1
/
despatch.h
43 lines (34 loc) · 1.17 KB
/
despatch.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
/********************************************************************************
* File Name : despatch.h
* Title :
* Programmer: Motki Kimura
* Belonging :
* Date : 2014.8.7
* Language : C++
*********************************************************************************
* class to calculate the phase of DESPATCH
*
********************************************************************************/
#ifndef DESPATCH_H_
#define DESPATCH_H_
#include "tf.h"
#include "tracker.h"
#include <string>
class DespatchTracker : public SpacecraftTracker {
public:
DespatchTracker (void);
DespatchTracker (double departureMjd ,SCDRec const& scd);
~DespatchTracker (void);
void setDepartureTime (double departureMjd);
void getDepartureTime (double* departureMjd) const;
int setTargetTime (double unixtime);
void getDespatchPhase (string* phase) const;
void test (double unixtime_s, double unixtime_e, double outputDt);
private:
static const double SecondsMorseEnd_;
static const double SecondsBaudotEnd_;
static const double SecondsBeaconEnd_;
double departureMjd_;
void calcSecondsFromDeparture (double* secondsFromDeparture) const;
};
#endif