@@ -65,23 +65,23 @@ func TestAppendChecksumPreservesOriginal(t *testing.T) {
6565 }
6666}
6767
68- func TestFlightModeCmdConfig (t * testing.T ) {
69- // Verify FlightModeCmd has expected values
70- if flightModeCmd .DynModel != 6 {
71- t .Errorf ("expected DynModel 6 (airborne <1g), got %d" , flightModeCmd .DynModel )
68+ func TestNav5CmdConfig (t * testing.T ) {
69+ // Verify nav5Cmd has expected values
70+ if nav5Cmd .DynModel != 6 {
71+ t .Errorf ("expected DynModel 6 (airborne <1g), got %d" , nav5Cmd .DynModel )
7272 }
7373
74- if flightModeCmd .FixMode != 3 {
75- t .Errorf ("expected FixMode 3 (auto 2D/3D), got %d" , flightModeCmd .FixMode )
74+ if nav5Cmd .FixMode != 3 {
75+ t .Errorf ("expected FixMode 3 (auto 2D/3D), got %d" , nav5Cmd .FixMode )
7676 }
7777
7878 expectedMask := CfgNav5Dyn | CfgNav5MinEl | CfgNav5PosFixMode
79- if flightModeCmd .Mask != expectedMask {
80- t .Errorf ("expected Mask 0x%04X, got 0x%04X" , expectedMask , flightModeCmd .Mask )
79+ if nav5Cmd .Mask != expectedMask {
80+ t .Errorf ("expected Mask 0x%04X, got 0x%04X" , expectedMask , nav5Cmd .Mask )
8181 }
8282
83- if flightModeCmd .MinElev_deg != 5 {
84- t .Errorf ("expected MinElev_deg 5, got %d" , flightModeCmd .MinElev_deg )
83+ if nav5Cmd .MinElev_deg != 5 {
84+ t .Errorf ("expected MinElev_deg 5, got %d" , nav5Cmd .MinElev_deg )
8585 }
8686}
8787
@@ -118,9 +118,9 @@ func TestGNSSDisableCmdConfig(t *testing.T) {
118118 }
119119}
120120
121- func TestFlightModeCmdWrite (t * testing.T ) {
121+ func TestNav5CmdWrite (t * testing.T ) {
122122 buf := make ([]byte , 64 )
123- flightModeCmd .Put42Bytes (buf )
123+ nav5Cmd .Put42Bytes (buf )
124124
125125 // Verify sync chars
126126 if buf [0 ] != 0xB5 || buf [1 ] != 0x62 {
@@ -197,9 +197,9 @@ func TestMessageRateCmdConfigs(t *testing.T) {
197197 rate byte
198198 }{
199199 {"GGA" , messageRateGGACmd , 0xF0 , 0x00 , 1 },
200- {"GLL" , messageRateGLLCmd , 0xF0 , 0x01 , 0 },
201- {"GSA" , messageRateGSACmd , 0xF0 , 0x02 , 1 },
202- {"GSV" , messageRateGSVCmd , 0xF0 , 0x03 , 1 },
200+ {"GLL" , messageRateGLLCmd , 0xF0 , 0x01 , 1 },
201+ {"GSA" , messageRateGSACmd , 0xF0 , 0x02 , 0 },
202+ {"GSV" , messageRateGSVCmd , 0xF0 , 0x03 , 0 },
203203 {"RMC" , messageRateRMCCmd , 0xF0 , 0x04 , 1 },
204204 {"VTG" , messageRateVTGCmd , 0xF0 , 0x05 , 0 },
205205 {"ZDA" , messageRateZDACmd , 0xF0 , 0x08 , 0 },
@@ -269,9 +269,9 @@ func TestMinimalMessageRatesConfig(t *testing.T) {
269269 // GGA and RMC should be enabled (rate=1), others disabled (rate=0)
270270 expectedRates := map [byte ]byte {
271271 0x00 : 1 , // GGA - enabled
272- 0x01 : 0 , // GLL - disabled
273- 0x02 : 1 , // GSA - enabled
274- 0x03 : 1 , // GSV - enabled
272+ 0x01 : 1 , // GLL - enabled
273+ 0x02 : 0 , // GSA - disabled
274+ 0x03 : 0 , // GSV - disabled
275275 0x04 : 1 , // RMC - enabled
276276 0x05 : 0 , // VTG - disabled
277277 0x08 : 0 , // ZDA - disabled
@@ -337,9 +337,9 @@ func TestAllMessageRatesWriteCorrectBytes(t *testing.T) {
337337
338338func TestSetMessageRatesAllEnabledModifiesRate (t * testing.T ) {
339339 // Verify that when we copy a command and set Rate=1, it works correctly
340- cmd := messageRateGLLCmd // This one is disabled by default
340+ cmd := messageRateGSACmd // This one is disabled by default
341341 if cmd .Rate != 0 {
342- t .Errorf ("expected GLL default rate 0, got %d" , cmd .Rate )
342+ t .Errorf ("expected GSA default rate 0, got %d" , cmd .Rate )
343343 }
344344
345345 // Simulate what SetMessageRatesAllEnabled does
0 commit comments