Typos, license headers...
This commit is contained in:
parent
034140914c
commit
1c905e5881
8 changed files with 95 additions and 35 deletions
|
@ -1,9 +1,20 @@
|
||||||
/*
|
// Airports forward declarations
|
||||||
* airports_fwd.hxx
|
//
|
||||||
*
|
// Copyright (C) 2013 Thomas Geymayer <tomgey@gmail.com>
|
||||||
* Created on: 04.03.2013
|
//
|
||||||
* Author: tom
|
// This program is free software; you can redistribute it and/or
|
||||||
*/
|
// modify it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 2 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but
|
||||||
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// General Public License for more details.
|
||||||
|
//
|
||||||
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#ifndef AIRPORTS_FWD_HXX_
|
#ifndef AIRPORTS_FWD_HXX_
|
||||||
#define AIRPORTS_FWD_HXX_
|
#define AIRPORTS_FWD_HXX_
|
||||||
|
|
|
@ -1,3 +1,21 @@
|
||||||
|
// Integrate Canvas into FlightGear
|
||||||
|
//
|
||||||
|
// Copyright (C) 2012 Thomas Geymayer <tomgey@gmail.com>
|
||||||
|
//
|
||||||
|
// This program is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 2 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but
|
||||||
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// General Public License for more details.
|
||||||
|
//
|
||||||
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#include "FGCanvasSystemAdapter.hxx"
|
#include "FGCanvasSystemAdapter.hxx"
|
||||||
|
|
||||||
#include <Main/globals.hxx>
|
#include <Main/globals.hxx>
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/*
|
// Integrate Canvas into FlightGear
|
||||||
* FGCanvasSystemAdapter.hxx
|
//
|
||||||
*
|
// Copyright (C) 2012 Thomas Geymayer <tomgey@gmail.com>
|
||||||
* Created on: 02.11.2012
|
//
|
||||||
* Author: tom
|
// This program is free software; you can redistribute it and/or
|
||||||
*/
|
// modify it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 2 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but
|
||||||
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// General Public License for more details.
|
||||||
|
//
|
||||||
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#ifndef FG_CANVASSYSTEMADAPTER_HXX_
|
#ifndef FG_CANVASSYSTEMADAPTER_HXX_
|
||||||
#define FG_CANVASSYSTEMADAPTER_HXX_
|
#define FG_CANVASSYSTEMADAPTER_HXX_
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/*
|
// Airports forward declarations
|
||||||
* CanvasWidget.cxx
|
//
|
||||||
*
|
// Copyright (C) 2012 Thomas Geymayer <tomgey@gmail.com>
|
||||||
* Created on: 03.07.2012
|
//
|
||||||
* Author: tom
|
// This program is free software; you can redistribute it and/or
|
||||||
*/
|
// modify it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 2 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but
|
||||||
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// General Public License for more details.
|
||||||
|
//
|
||||||
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
/*
|
// CanvasWidget -- Using Canvas inside PUI dialogs
|
||||||
* CanvasWidget.hxx
|
//
|
||||||
*
|
// Copyright (C) 2012 Thomas Geymayer <tomgey@gmail.com>
|
||||||
* Created on: 03.07.2012
|
//
|
||||||
* Author: tom
|
// This program is free software; you can redistribute it and/or
|
||||||
*/
|
// modify it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation; either version 2 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful, but
|
||||||
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// General Public License for more details.
|
||||||
|
//
|
||||||
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
#ifndef CANVASWIDGET_HXX_
|
#ifndef CANVASWIDGET_HXX_
|
||||||
#define CANVASWIDGET_HXX_
|
#define CANVASWIDGET_HXX_
|
||||||
|
|
|
@ -571,7 +571,7 @@ void FGNavRadio::updateReceiver(double dt)
|
||||||
} // of false courses disabled
|
} // of false courses disabled
|
||||||
|
|
||||||
const double VOR_FULL_ARC = 20.0; // VOR is -10 .. 10 degree swing
|
const double VOR_FULL_ARC = 20.0; // VOR is -10 .. 10 degree swing
|
||||||
_cdiDeflection *= VOR_FULL_ARC / _localizerWidth; // increased localiser sensitivity
|
_cdiDeflection *= VOR_FULL_ARC / _localizerWidth; // increased localizer sensitivity
|
||||||
|
|
||||||
if (backcourse_node->getBoolValue()) {
|
if (backcourse_node->getBoolValue()) {
|
||||||
_cdiDeflection = -_cdiDeflection;
|
_cdiDeflection = -_cdiDeflection;
|
||||||
|
@ -582,7 +582,7 @@ void FGNavRadio::updateReceiver(double dt)
|
||||||
r = ( r<0.0 ? -r-180.0 : -r+180.0 );
|
r = ( r<0.0 ? -r-180.0 : -r+180.0 );
|
||||||
}
|
}
|
||||||
_cdiDeflection = r;
|
_cdiDeflection = r;
|
||||||
} // of non-localiser case
|
} // of non-localizer case
|
||||||
|
|
||||||
SG_CLAMP_RANGE(_cdiDeflection, -10.0, 10.0 );
|
SG_CLAMP_RANGE(_cdiDeflection, -10.0, 10.0 );
|
||||||
_cdiDeflection *= signal_quality_norm;
|
_cdiDeflection *= signal_quality_norm;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#ifndef _FG_NAVRADIO_HXX
|
#ifndef _FG_NAVRADIO_HXX
|
||||||
#define _FG_NAVRADIO_HXX
|
#define _FG_NAVRADIO_HXX
|
||||||
|
|
||||||
|
#include <Navaids/navaids_fwd.hxx>
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
|
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
|
@ -32,8 +32,6 @@
|
||||||
#include <simgear/timing/timestamp.hxx>
|
#include <simgear/timing/timestamp.hxx>
|
||||||
|
|
||||||
class SGSampleGroup;
|
class SGSampleGroup;
|
||||||
class FGNavRecord;
|
|
||||||
typedef SGSharedPtr<FGNavRecord> FGNavRecordPtr;
|
|
||||||
|
|
||||||
class FGNavRadio : public SGSubsystem, public SGPropertyChangeListener
|
class FGNavRadio : public SGSubsystem, public SGPropertyChangeListener
|
||||||
{
|
{
|
||||||
|
@ -119,8 +117,8 @@ class FGNavRadio : public SGSubsystem, public SGPropertyChangeListener
|
||||||
int play_count;
|
int play_count;
|
||||||
bool _nav_search;
|
bool _nav_search;
|
||||||
double _last_freq;
|
double _last_freq;
|
||||||
FGNavRecordPtr _navaid;
|
FGNavRecordRef _navaid;
|
||||||
FGNavRecordPtr _gs;
|
FGNavRecordRef _gs;
|
||||||
|
|
||||||
double target_radial;
|
double target_radial;
|
||||||
double effective_range;
|
double effective_range;
|
||||||
|
|
|
@ -74,10 +74,10 @@ static bool autoAlignLocalizers = false;
|
||||||
static double autoAlignThreshold = 0.0;
|
static double autoAlignThreshold = 0.0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given a runway, and proposed localiser data (ident, positioned and heading),
|
* Given a runway, and proposed localizer data (ident, positioned and heading),
|
||||||
* precisely align the localiser with the actual runway heading, providing the
|
* precisely align the localizer with the actual runway heading, providing the
|
||||||
* difference between the localiser course and runway heading is less than a
|
* difference between the localizer course and runway heading is less than a
|
||||||
* threshold. (To allow for localizers such as Kai-Tek requiring a turn on final).
|
* threshold. (To allow for localizers such as Kai-Tak requiring a turn on final).
|
||||||
*
|
*
|
||||||
* The positioned and heading argument are modified if changes are made.
|
* The positioned and heading argument are modified if changes are made.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue