FlightGear next
util.hxx
Go to the documentation of this file.
1// util.hxx - general-purpose utility functions.
2// Copyright (C) 2002 Curtis L. Olson - http://www.flightgear.org/~curt
3//
4// This program is free software; you can redistribute it and/or
5// modify it under the terms of the GNU General Public License as
6// published by the Free Software Foundation; either version 2 of the
7// License, or (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17//
18// $Id$
19
20#ifndef __UTIL_HXX
21#define __UTIL_HXX 1
22
23#include <string>
24#include <simgear/misc/sg_path.hxx>
25
37double fgGetLowPass (double current, double target, double timeratio);
38
39
44
45namespace flightgear
46{
53 std::string getAircraftAuthorsText();
54
64 double lowPassPeriodicDegreesSigned(double current, double target, double timeratio);
65
75 double lowPassPeriodicDegreesPositive(double current, double target, double timeratio);
76
84 double filterExponential(double current, double target, double timeratio);
85}
86
87#endif // __UTIL_HXX
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
Definition Addon.cxx:53
std::string getAircraftAuthorsText()
getAircraftAuthorsText - get the aircraft authors as a single string value.
Definition util.cxx:187
double lowPassPeriodicDegreesPositive(double current, double target, double timeratio)
low-pass filter for bearings, etc in degrees.
Definition util.cxx:89
double lowPassPeriodicDegreesSigned(double current, double target, double timeratio)
low-pass filter for bearings, etc in degrees.
Definition util.cxx:95
double filterExponential(double current, double target, double timeratio)
exponential filter
Definition util.cxx:101
double fgGetLowPass(double current, double target, double timeratio)
Move a value towards a target.
Definition util.cxx:46
void fgInitAllowedPaths()
Set the read and write lists of allowed paths patterns for SGPath::validate()
Definition util.cxx:112