Skip to content

Commit c3e6442

Browse files
committed
correctly report wind speed at carrier in feet #88
1 parent 3e66d50 commit c3e6442

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

CHANGELOG.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [2.2.2]
10+
911
### Changed
1012

1113
- Changed the wind direction of ATIS reports from true to magnetic north
1214

13-
## [2.2.0] - 2021-01-24
15+
### Fixed
16+
17+
- Correctly report wind speed at carrier in feet (instead of in m/s) [#99](https://github.com/rkusa/DATIS/issues/88)
18+
19+
## [2.2.1] - 2021-01-24
1420

1521
### Fixed
1622

17-
- Fixed pronunciation pronunciation of noun "wind" (from `/waɪnd/` to `/wɪnd/`) for Windows' TTS. #80
18-
- Fixed carrier report to report correct magnetic BRC (by estimating the magnetic declination using the IGRF model). #68
23+
- Fixed pronunciation pronunciation of noun "wind" (from `/waɪnd/` to `/wɪnd/`) for Windows' TTS. [#80](https://github.com/rkusa/DATIS/issues/80)
24+
- Fixed carrier report to report correct magnetic BRC (by estimating the magnetic declination using the IGRF model). [#68](https://github.com/rkusa/DATIS/issues/68)
1925

2026
## [2.2.0] - 2021-01-22
2127

crates/datis-cmd/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "datis-cmd"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
authors = ["Markus Ast <m@rkusa.st>"]
55
edition = "2018"
66

crates/datis-core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "datis-core"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
authors = ["Markus Ast <m@rkusa.st>"]
55
edition = "2018"
66

crates/datis-core/src/station.rs

+3-9
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ impl Station {
138138
}
139139
});
140140

141-
log::debug!(
142-
"Declination is {:.2} for heading {:.2} ",
143-
declination,
144-
heading.to_degrees()
145-
);
146-
147141
let heading = (heading.to_degrees() - declination).floor() as u16;
148142

149143
Ok(Some(Report {
@@ -419,7 +413,7 @@ impl Carrier {
419413
"wind"
420414
},
421415
pronounce_number(wind_dir, spoken),
422-
pronounce_number(weather.wind_speed.round(), spoken),
416+
pronounce_number((weather.wind_speed * 1.94384).round(), spoken),
423417
_break,
424418
);
425419

@@ -787,8 +781,8 @@ mod test {
787781
};
788782

789783
let report = station.generate_report(26).await.unwrap().unwrap();
790-
assert_eq!(report.spoken, "<speak version=\"1.0\" xml:lang=\"en\">\n99, | Stennis\'s <phoneme alphabet=\"ipa\" ph=\"w&#618;nd\">wind</phoneme> ZERO ZERO 6 at 3 knots, | altimeter 2 NINER NINER 7, | CASE 1, | BRC 1 8 ZERO, | expected final heading 1 7 1, | report initial.\n</speak>");
791-
assert_eq!(report.textual, "99, Stennis\'s wind 006 at 3 knots, altimeter 2997, CASE 1, BRC 180, expected final heading 171, report initial.");
784+
assert_eq!(report.spoken, "<speak version=\"1.0\" xml:lang=\"en\">\n99, | Stennis\'s <phoneme alphabet=\"ipa\" ph=\"w&#618;nd\">wind</phoneme> ZERO ZERO 6 at 5 knots, | altimeter 2 NINER NINER 7, | CASE 1, | BRC 1 8 ZERO, | expected final heading 1 7 1, | report initial.\n</speak>");
785+
assert_eq!(report.textual, "99, Stennis\'s wind 006 at 5 knots, altimeter 2997, CASE 1, BRC 180, expected final heading 171, report initial.");
792786
}
793787

794788
#[tokio::test]

crates/datis-module/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "datis"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
authors = ["Markus Ast <m@rkusa.st>"]
55
edition = "2018"
66

crates/radio-station/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dcs-radio-station"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
authors = ["Markus Ast <m@rkusa.st>"]
55
edition = "2018"
66

crates/srs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "srs"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
authors = ["rkusa"]
55
edition = "2018"
66

crates/win-tts/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "win-tts"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
authors = ["Markus Ast <m@rkusa.st>"]
55
edition = "2018"
66

mod/Mods/services/DATIS/entry.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare_plugin("DATIS", {
55
"datis.dll",
66
},
77

8-
version = "2.2.1",
8+
version = "2.2.2",
99
state = "installed",
1010
developerName = "github.com/rkusa",
1111
info = _("DATIS enables a DCS server with an SRS server running on the same machine (TCP=127.0.0.1) to get weather from the mission for stations and frequencies set in the mission editor, and then to report same in a standardized format over SRS using either the Amazon or Google text to speech engines."),

0 commit comments

Comments
 (0)