const int max_planes = 20; // max number of planes on the stack
const int max_wp = 10; // max number of waypoints for approach phase
const double max_ta = 130; // max turning angle for plane during approach
-const double tbm = 20000.0; // min time (in ms) between two messages
+const double tbm = 2.0; // min time (in sec) between two messages
const double lfl = 10.0; // length of final leg
struct PlaneApp {
double active_rw_lat;
double active_rw_len;
- bool display; // Flag to indicate whether we should be outputting to the display.
- bool displaying; // Flag to indicate whether we are outputting to the display.
int num_planes; // number of planes on the stack
PlaneApp planes[max_planes]; // Array of planes
string transmission;
// Add new plane to stack if not already registered
// Input: pid - id of plane (name)
// Output: "true" if added; "false" if already existend
- void AddPlane(string pid);
+ void AddPlane(const string& pid);
// Remove plane from stack if out of range
int RemovePlane();
- //Indicate that this instance should be outputting to the ATC display
- inline void SetDisplay(void) {display = true;}
-
- //Indicate that this instance should not be outputting to the ATC display
- inline void SetNoDisplay(void) {display = false;}
-
inline double get_bucket() const { return bucket; }
inline int get_pnum() const { return num_planes; }
- inline string get_trans_ident() { return trans_ident; }
+ inline const string& get_trans_ident() { return trans_ident; }
private: