James Turner
f2d6b76b13
Portability: Fix compile errors on MSVC (cmath)
...
From Scott (xDraconian)
2015-03-24 11:11:42 -05:00
James Turner
bfeb41858d
Cmake always generates version.h
...
- simplify some code as a result
2015-03-08 00:42:39 +00:00
Torsten Dreyer
b42841ccd2
Add formatted KDI572/574 properties
...
Syd Adams:
I've added an update to dme.cxx /dme.hxx.
It adds a formatted KDI572-574/nm , min and kt string properties meant
for text animations for these instruments.Existing instruments will funtion
as usual, no breaks. The purpose here is to eliminate yet another nasal
workaround which usually needs to repeat some of what the code already does.
The 3 properties are empty when the dme is off (no need to check for power),
dashes when powered up but no source , out of range ,etc.
The are formatted to the KDI-572/573/574 limits ...
0-99.9/100-389 for distance to station,
0-99 minutes for time to station,
groundspeed 0-999 kt.
2015-02-11 08:35:31 +01:00
James Turner
e7d4e28f44
Fix broken angular conversion in RNAV runway controller.
2015-01-10 19:35:34 +00:00
James Turner
cc2a78b70b
RNAV: use runway departure end for previous wpt.
...
Should fix leg computation following a runway waypt.
2015-01-10 19:35:11 +00:00
James Turner
6b9aa0fb97
Fix GPS intercept controller:
...
- handle bad intersection geometry gracefully (end controller)
- fix termination condition
- always use target track to compute position.
2015-01-10 17:57:02 +00:00
James Turner
fa3301f68d
Fix spelling mistake.
2015-01-10 17:57:02 +00:00
James Turner
e94371ebfc
Route-path bug fixes.
...
- explicit aircraft performance categories for turn radius
- allow overflight leg course behaviour to be selected
2015-01-08 19:46:04 +00:00
James Turner
23b0db0f0d
Waypoint controller fixes
...
- use a low pass filter on FPM value for ConstHdgToAlt
- better position calculation for DME/radial/VOR intercepts
2015-01-02 23:58:29 +00:00
Clément de l'Hamaide
49ce7cd318
Revert "Altimeter: fix output format for hPa/InHg settings"
...
Replaced by some line of Nasal, that way we don't touch the internal precision of the altimeter
This reverts commit 84a26de9ae
.
2014-12-30 17:32:48 +01:00
Clément de l'Hamaide
84a26de9ae
Altimeter: fix output format for hPa/InHg settings
...
Usually, in a real cockpit, altimeter shows hPa setting as an integer number and InHg setting is limited to 2 decimals
In aviation we don't need higher numeric precision
2014-12-30 16:20:08 +01:00
James Turner
088572e87d
Route-path:
...
* better overflight pathing based on next wpt type
* tolerate procedures with bad intersections (eg KSFO OFFSH8)
2014-12-19 17:01:27 +00:00
James Turner
7317aff22d
Fix route-path bugs:
...
- accurate fly-over / fly-by computations
- parse additional LevelD XML elements
- path vector contains curves for turns
Remove dead code.
2014-12-18 23:05:28 +00:00
Torsten Dreyer
a4ab1dae38
downgrade log-level for newnavradio messages
2014-12-11 21:37:37 +01:00
Torsten Dreyer
b750e9d8b5
Shut off spoken atis if radio's power button is off
2014-12-11 11:20:34 +01:00
James Turner
01622dd1f4
Fix flight-plan course and distance computations.
...
Always use the RoutePath system for course and distance computations
in the flight plan, so that dynamic segments are handled correctly.
2014-12-08 17:56:15 +00:00
Thomas Geymayer
db22e215a2
Fix updating ADF ident if getting in range after being out of range.
2014-10-03 12:40:07 +02:00
Torsten Dreyer
85e4a3254f
Fix comm radio frequency range
...
Thanks to Richard Senior
2014-09-02 17:10:09 +02:00
Torsten Dreyer
a5c39e3009
Final log-class cleanup (httpd comes in another commit)
...
yes, I will use grep next time :-/
2014-05-20 23:12:34 +02:00
Torsten Dreyer
ffe6c39a1d
More AtisSpeaker variations
...
Also hide the voice installation path from the user of
the VoiceSynthesizer
2014-05-13 11:20:11 +02:00
Torsten Dreyer
1c8c74fc76
Compile without ENABLE_FLITE
2014-05-07 19:07:29 +02:00
Torsten Dreyer
4cdb5ed1f3
AtisSpeaker: prepare for individual voices
2014-05-07 17:08:02 +02:00
Torsten Dreyer
36fc9790ed
atis voice: add some variation in pitch and speed
2014-05-07 10:34:04 +02:00
Torsten Dreyer
dd127de32b
Changes to voice + atis
...
- Add a very simple line-of-sight propagation model for the radio
range computation.
- Remove some no longer used debug log messages
- Some code cleanup
- add-noise is now on by default
2014-05-06 10:23:04 +02:00
Torsten Dreyer
99dd8c08b5
commradio: typo: cuttoff --> cutoff
2014-05-05 13:22:39 +02:00
Torsten Dreyer
7dc2ee46a2
commradio: add squelch
...
adding property cuttoff-signal-quality to the comm radio
If signal-quality goes below this value, atis sound is muted.
Also: initialize property power-btn if not defined by the
aircraft or instrument designer
2014-05-05 13:20:03 +02:00
Torsten Dreyer
46584bfc92
commradio: no spoken atis if sound disabled
2014-04-30 10:50:57 +02:00
Torsten Dreyer
88e5dc873f
Cleanup part2. Forgotton file.
2014-04-30 10:45:52 +02:00
Torsten Dreyer
d2c000699f
Cleanup of ATCDCL
...
- move FGATCAlignedProjection class as AlignedProjection
to dclgps, the only place where it's currently used
- remove now obsolete files in ATCDCL
2014-04-30 10:22:51 +02:00
Torsten Dreyer
14c918a7ef
commradio: improvements for atis speech
...
- use individual SampleGroup refnames for each radio
- enable volume control for atis speech
- (optionally) add noise based on signal quality
2014-04-28 23:50:45 +02:00
Torsten Dreyer
d5d88f2850
commradio: refactor MetarSpeaker to AtisSpeaker
2014-04-28 22:02:48 +02:00
Torsten Dreyer
cadb77b18d
use flite+hts for metar
2014-04-24 20:59:08 +02:00
James Turner
849c6ccc6e
GPS fixes
...
- fix corrupted ident on Mac (libc++ issue)
- don't clear scratch when activating DTO mode
- use the real navaid/airport for the waypt where possible
- expose active waypt name
2014-03-16 16:20:03 +00:00
Torsten Dreyer
75933d3e1e
add min/max freq to the frequencyformatter
2014-03-14 15:19:23 +01:00
Torsten Dreyer
275d2dc7fa
Partial fix #1408
2014-03-12 21:21:56 +01:00
Thomas Geymayer
c7c9fd67aa
TACAN: fix distance calculations and some other problems.
...
- Calculate line of sight distance instead of distance over
ground
- Do a nav cache update if carrier_nav.dat.gz timestamp has
changed
- Allow comments in carrier_nav.dat.gz
- "Fix" range calculations (still does not take terrain/weather
and other influences into account)
2014-03-02 16:52:00 +01:00
Thomas Geymayer
5151f7f5e0
TACAN improvements.
...
- Make search interval for new mobile tacan larger.
- Continuous update of mobile tacan position.
2014-03-02 01:34:04 +01:00
Thomas Geymayer
234e2bdf09
TACAN/mobile navaid cleanup and improvements.
2014-03-01 20:19:06 +01:00
Torsten Dreyer
0c7f21a259
New ATIS System: Fallback for no-realwx and some fixes
...
Added the fallback for realweather fetch disabled, creating
ATIS from present weather
Fixed some formatting errors, mainly missing spaces
Some code cleanup
2014-03-01 12:44:01 +01:00
Torsten Dreyer
5e080c1e37
Fix wrong metar assignment in commradio
2014-02-28 22:36:29 +01:00
Thomas Geymayer
e34d97796c
TACAN: fix receiving mobile TACAN.
2014-02-28 20:01:09 +01:00
Torsten Dreyer
dd6cccdda1
A new comm radio and atis implementation
2014-02-28 11:45:49 +01:00
Christian Schmitt
7e8ee5a3a8
fix another crash at the poles
2014-02-07 23:29:06 +01:00
Christian Schmitt
6cadc2cf40
Simplify some SGGeod-related calculations
2014-02-05 23:07:43 +01:00
James Turner
27c58ddb21
Tacan: avoid a 'long-range' wgs84_inverse
...
- Only check mobile distance at all, if the mobile is valid
2014-02-04 14:54:39 +00:00
James Turner
34433c1fa1
GPS: fix bad init when far from any airport
2014-02-04 14:53:42 +00:00
James Turner
c6541e9c8f
Remove some debug log calls.
...
All places which continuously log messages (either every frame or at
least every second) tending to swamp other log output.
2014-01-23 13:49:58 +00:00
James Turner
2df74c9b63
Silence some clang warnings.
...
(Unused private variables)
2014-01-19 16:49:43 +00:00
James Turner
976f3115a9
GPS bug fix: restore startup mode.
...
- the 'default to current airport' behaviour got broken by the
changes to the scratch.
- expose a 'valid' flag on WP1
2014-01-14 13:04:52 +00:00
James Turner
ea822a99e1
Fix some warnings identified by Clang
...
_ unused private members. Removed in most cases, commented
out in a couple of cases where it feels as if the code might be used in the future.
2013-11-16 09:41:33 +00:00