FlightGear next
util.hxx File Reference
#include <string>
#include <simgear/misc/sg_path.hxx>

Go to the source code of this file.

Namespaces

namespace  flightgear
 FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information and waypoints.
 

Functions

double fgGetLowPass (double current, double target, double timeratio)
 Move a value towards a target.
 
void fgInitAllowedPaths ()
 Set the read and write lists of allowed paths patterns for SGPath::validate()
 
std::string flightgear::getAircraftAuthorsText ()
 getAircraftAuthorsText - get the aircraft authors as a single string value.
 
double flightgear::lowPassPeriodicDegreesSigned (double current, double target, double timeratio)
 low-pass filter for bearings, etc in degrees.
 
double flightgear::lowPassPeriodicDegreesPositive (double current, double target, double timeratio)
 low-pass filter for bearings, etc in degrees.
 
double flightgear::filterExponential (double current, double target, double timeratio)
 exponential filter
 

Function Documentation

◆ fgGetLowPass()

double fgGetLowPass ( double current,
double target,
double timeratio )

Move a value towards a target.

This function was originally written by Alex Perry.

Parameters
currentThe current value.
targetThe target value.
timeratioThe percentage of smoothing time that has passed (elapsed time/smoothing time)
Returns
The new value.

Definition at line 46 of file util.cxx.

◆ fgInitAllowedPaths()

void fgInitAllowedPaths ( )

Set the read and write lists of allowed paths patterns for SGPath::validate()

Set the read and write lists of allowed paths patterns for SGPath::validate()

Definition at line 112 of file util.cxx.