3 // Written by Vivian MEAZZA, started Feb 2008.
6 // Copyright (C) 2008 Vivain MEAZZA - vivian.meazza@lineone.net
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef _INST_RADALT_HXX
25 #define _INST_RADALT_HXX
27 #include <simgear/structure/subsystem_mgr.hxx>
28 #include <Scenery/scenery.hxx>
29 #include <simgear/scene/material/mat.hxx>
31 #include "agradar.hxx"
33 class radAlt : public agRadar{
36 radAlt ( SGPropertyNode *node );
43 virtual void update (double dt);
45 void update_altitude();
46 double getDistanceAntennaToHit(SGVec3d h) const;
48 SGPropertyNode_ptr _user_alt_agl_node;
49 SGPropertyNode_ptr _rad_alt_warning_node;
55 #endif // _INST_AGRADAR_HXX