-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTCAS_defs.h
38 lines (25 loc) · 902 Bytes
/
TCAS_defs.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
#pragma once
#include <chrono>
const uint64_t own_hex = 216412359;
class AC_state
{
friend class AC_sim; //to access the positions and velocities
friend class TCAS_sim; //to access AC_ID
friend void printState(AC_state state);
friend void Radar_update(AC_state ownState, AC_state *targetStates);
private:
uint64_t AC_ID;
double x_pos;
double y_pos;
double z_pos;
double x_spd;
double y_spd;
double z_spd;
std::chrono::time_point<std::chrono::high_resolution_clock> time_of_issue;
public:
//Default constructor, marks as invalid state
AC_state();
AC_state(uint64_t ID, double xpos, double ypos, double zpos,
double xspd, double yspd, double zspd);
AC_state(uint64_t ID, double Latitude, double Longitude, double Altitude); //velocity to be defined by commands
};