//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef _FG_APPROACH_HXX
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 {
// 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();
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:
double angle_diff_deg( const double &a1, const double &a2);
+ void set_message(const string &s);
+
// ========================================================================
// get point2 given starting point1 and course and distance
// input: point1 = heading in degrees, distance