mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-05 22:45:42 +00:00
Added ModeIndicator to GLL
This commit is contained in:
parent
0c19f097c5
commit
95fea42930
2 changed files with 39 additions and 1 deletions
|
|
@ -368,6 +368,20 @@ namespace NmeaParser.Tests
|
|||
Assert.AreEqual(-117.196813151667, gll.Longitude, .000000000001);
|
||||
Assert.AreEqual(new TimeSpan(0, 23, 57, 15, 0), gll.FixTime);
|
||||
}
|
||||
[TestMethod]
|
||||
public void TestLcgll()
|
||||
{
|
||||
string input = "$LCGLL,4728.31,N,12254.25,W,091342,A,A*4C";
|
||||
var msg = NmeaMessage.Parse(input);
|
||||
Assert.IsInstanceOfType(msg, typeof(Gll));
|
||||
Gll gll = (Gll)msg;
|
||||
Assert.AreEqual(Talker.LoranC, gll.TalkerId);
|
||||
Assert.IsTrue(gll.DataActive);
|
||||
Assert.AreEqual(47.471833333333336, gll.Latitude);
|
||||
Assert.AreEqual(-122.90416666666667, gll.Longitude);
|
||||
Assert.AreEqual(new TimeSpan(0, 9, 13, 42, 0), gll.FixTime);
|
||||
Assert.AreEqual(Gll.Mode.Autonomous, gll.ModeIndicator);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue