Skip to content

Commit dac24ad

Browse files
author
Jason Mobarak
committed
Release 4.0.0
1 parent 4221358 commit dac24ad

File tree

10 files changed

+60
-109
lines changed

10 files changed

+60
-109
lines changed

c/include/libsbp/version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
* \{ */
2222

2323
/** Protocol major version. */
24-
#define SBP_MAJOR_VERSION 3
24+
#define SBP_MAJOR_VERSION 4
2525
/** Protocol minor version. */
26-
#define SBP_MINOR_VERSION 4
26+
#define SBP_MINOR_VERSION 0
2727
/** Protocol patch version. */
28-
#define SBP_PATCH_VERSION 10
28+
#define SBP_PATCH_VERSION 0
2929

3030
/** Full SBP version string. */
31-
#define SBP_VERSION "3.4.11-alpha"
31+
#define SBP_VERSION "4.0.0"
3232

3333
/** \} */
3434

docs/sbp.pdf

10.6 KB
Binary file not shown.

haskell/sbp.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sbp
2-
version: 3.4.11-alpha
2+
version: 4.0.0
33
synopsis: SwiftNav's SBP Library
44
homepage: https://github.com/swift-nav/libsbp
55
license: MIT
@@ -170,4 +170,4 @@ test-suite test
170170
, tasty
171171
, tasty-hunit
172172
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
173-
default-language: Haskell2010
173+
default-language: Haskell2010

haskell/src/SwiftNav/SBP/Ssr.hs

Lines changed: 39 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -324,62 +324,6 @@ instance Binary STECResidual where
324324
$(makeJSON "_sTECResidual_" ''STECResidual)
325325
$(makeLenses ''STECResidual)
326326

327-
-- | GridElementNoStd.
328-
--
329-
-- Contains one tropo delay, plus STEC residuals for each satellite at the
330-
-- grid point.
331-
data GridElementNoStd = GridElementNoStd
332-
{ _gridElementNoStd_index :: !Word16
333-
-- ^ Index of the grid point
334-
, _gridElementNoStd_tropo_delay_correction :: !TroposphericDelayCorrectionNoStd
335-
-- ^ Wet and hydrostatic vertical delays
336-
, _gridElementNoStd_stec_residuals :: ![STECResidualNoStd]
337-
-- ^ STEC residuals for each satellite
338-
} deriving ( Show, Read, Eq )
339-
340-
instance Binary GridElementNoStd where
341-
get = do
342-
_gridElementNoStd_index <- getWord16le
343-
_gridElementNoStd_tropo_delay_correction <- get
344-
_gridElementNoStd_stec_residuals <- whileM (not <$> isEmpty) get
345-
pure GridElementNoStd {..}
346-
347-
put GridElementNoStd {..} = do
348-
putWord16le _gridElementNoStd_index
349-
put _gridElementNoStd_tropo_delay_correction
350-
mapM_ put _gridElementNoStd_stec_residuals
351-
352-
$(makeJSON "_gridElementNoStd_" ''GridElementNoStd)
353-
$(makeLenses ''GridElementNoStd)
354-
355-
-- | GridElement.
356-
--
357-
-- Contains one tropo delay (mean and stddev), plus STEC residuals (mean and
358-
-- stddev) for each satellite at the grid point.
359-
data GridElement = GridElement
360-
{ _gridElement_index :: !Word16
361-
-- ^ Index of the grid point
362-
, _gridElement_tropo_delay_correction :: !TroposphericDelayCorrection
363-
-- ^ Wet and hydrostatic vertical delays (mean, stddev)
364-
, _gridElement_stec_residuals :: ![STECResidual]
365-
-- ^ STEC residuals for each satellite (mean, stddev)
366-
} deriving ( Show, Read, Eq )
367-
368-
instance Binary GridElement where
369-
get = do
370-
_gridElement_index <- getWord16le
371-
_gridElement_tropo_delay_correction <- get
372-
_gridElement_stec_residuals <- whileM (not <$> isEmpty) get
373-
pure GridElement {..}
374-
375-
put GridElement {..} = do
376-
putWord16le _gridElement_index
377-
put _gridElement_tropo_delay_correction
378-
mapM_ put _gridElement_stec_residuals
379-
380-
$(makeJSON "_gridElement_" ''GridElement)
381-
$(makeLenses ''GridElement)
382-
383327
msgSsrOrbitClock :: Word16
384328
msgSsrOrbitClock = 0x05DD
385329

@@ -604,21 +548,29 @@ msgSsrGriddedCorrection = 0x05FC
604548
--
605549
-- It is typically equivalent to the QZSS CLAS Sub Type 9 messages.
606550
data MsgSsrGriddedCorrection = MsgSsrGriddedCorrection
607-
{ _msgSsrGriddedCorrection_header :: !GriddedCorrectionHeader
551+
{ _msgSsrGriddedCorrection_header :: !GriddedCorrectionHeader
608552
-- ^ Header of a gridded correction message
609-
, _msgSsrGriddedCorrection_element :: !GridElement
610-
-- ^ Tropo and STEC residuals for the given grid point.
553+
, _msgSsrGriddedCorrection_index :: !Word16
554+
-- ^ Index of the grid point.
555+
, _msgSsrGriddedCorrection_tropo_delay_correction :: !TroposphericDelayCorrection
556+
-- ^ Wet and hydrostatic vertical delays (mean, stddev).
557+
, _msgSsrGriddedCorrection_stec_residuals :: ![STECResidual]
558+
-- ^ STEC residuals for each satellite (mean, stddev).
611559
} deriving ( Show, Read, Eq )
612560

613561
instance Binary MsgSsrGriddedCorrection where
614562
get = do
615563
_msgSsrGriddedCorrection_header <- get
616-
_msgSsrGriddedCorrection_element <- get
564+
_msgSsrGriddedCorrection_index <- getWord16le
565+
_msgSsrGriddedCorrection_tropo_delay_correction <- get
566+
_msgSsrGriddedCorrection_stec_residuals <- whileM (not <$> isEmpty) get
617567
pure MsgSsrGriddedCorrection {..}
618568

619569
put MsgSsrGriddedCorrection {..} = do
620570
put _msgSsrGriddedCorrection_header
621-
put _msgSsrGriddedCorrection_element
571+
putWord16le _msgSsrGriddedCorrection_index
572+
put _msgSsrGriddedCorrection_tropo_delay_correction
573+
mapM_ put _msgSsrGriddedCorrection_stec_residuals
622574

623575
$(makeSBP 'msgSsrGriddedCorrection ''MsgSsrGriddedCorrection)
624576
$(makeJSON "_msgSsrGriddedCorrection_" ''MsgSsrGriddedCorrection)
@@ -1005,21 +957,29 @@ msgSsrGriddedCorrectionNoStdDepA :: Word16
1005957
msgSsrGriddedCorrectionNoStdDepA = 0x05F0
1006958

1007959
data MsgSsrGriddedCorrectionNoStdDepA = MsgSsrGriddedCorrectionNoStdDepA
1008-
{ _msgSsrGriddedCorrectionNoStdDepA_header :: !GriddedCorrectionHeaderDepA
960+
{ _msgSsrGriddedCorrectionNoStdDepA_header :: !GriddedCorrectionHeaderDepA
1009961
-- ^ Header of a Gridded Correction message
1010-
, _msgSsrGriddedCorrectionNoStdDepA_element :: !GridElementNoStd
1011-
-- ^ Tropo and STEC residuals for the given grid point
962+
, _msgSsrGriddedCorrectionNoStdDepA_index :: !Word16
963+
-- ^ Index of the grid point
964+
, _msgSsrGriddedCorrectionNoStdDepA_tropo_delay_correction :: !TroposphericDelayCorrectionNoStd
965+
-- ^ Wet and hydrostatic vertical delays
966+
, _msgSsrGriddedCorrectionNoStdDepA_stec_residuals :: ![STECResidualNoStd]
967+
-- ^ STEC residuals for each satellite
1012968
} deriving ( Show, Read, Eq )
1013969

1014970
instance Binary MsgSsrGriddedCorrectionNoStdDepA where
1015971
get = do
1016972
_msgSsrGriddedCorrectionNoStdDepA_header <- get
1017-
_msgSsrGriddedCorrectionNoStdDepA_element <- get
973+
_msgSsrGriddedCorrectionNoStdDepA_index <- getWord16le
974+
_msgSsrGriddedCorrectionNoStdDepA_tropo_delay_correction <- get
975+
_msgSsrGriddedCorrectionNoStdDepA_stec_residuals <- whileM (not <$> isEmpty) get
1018976
pure MsgSsrGriddedCorrectionNoStdDepA {..}
1019977

1020978
put MsgSsrGriddedCorrectionNoStdDepA {..} = do
1021979
put _msgSsrGriddedCorrectionNoStdDepA_header
1022-
put _msgSsrGriddedCorrectionNoStdDepA_element
980+
putWord16le _msgSsrGriddedCorrectionNoStdDepA_index
981+
put _msgSsrGriddedCorrectionNoStdDepA_tropo_delay_correction
982+
mapM_ put _msgSsrGriddedCorrectionNoStdDepA_stec_residuals
1023983

1024984
$(makeSBP 'msgSsrGriddedCorrectionNoStdDepA ''MsgSsrGriddedCorrectionNoStdDepA)
1025985
$(makeJSON "_msgSsrGriddedCorrectionNoStdDepA_" ''MsgSsrGriddedCorrectionNoStdDepA)
@@ -1029,22 +989,29 @@ msgSsrGriddedCorrectionDepA :: Word16
1029989
msgSsrGriddedCorrectionDepA = 0x05FA
1030990

1031991
data MsgSsrGriddedCorrectionDepA = MsgSsrGriddedCorrectionDepA
1032-
{ _msgSsrGriddedCorrectionDepA_header :: !GriddedCorrectionHeaderDepA
992+
{ _msgSsrGriddedCorrectionDepA_header :: !GriddedCorrectionHeaderDepA
1033993
-- ^ Header of a Gridded Correction message
1034-
, _msgSsrGriddedCorrectionDepA_element :: !GridElement
1035-
-- ^ Tropo and STEC residuals for the given grid point (mean and standard
1036-
-- deviation)
994+
, _msgSsrGriddedCorrectionDepA_index :: !Word16
995+
-- ^ Index of the grid point
996+
, _msgSsrGriddedCorrectionDepA_tropo_delay_correction :: !TroposphericDelayCorrection
997+
-- ^ Wet and hydrostatic vertical delays (mean, stddev)
998+
, _msgSsrGriddedCorrectionDepA_stec_residuals :: ![STECResidual]
999+
-- ^ STEC residuals for each satellite (mean, stddev)
10371000
} deriving ( Show, Read, Eq )
10381001

10391002
instance Binary MsgSsrGriddedCorrectionDepA where
10401003
get = do
10411004
_msgSsrGriddedCorrectionDepA_header <- get
1042-
_msgSsrGriddedCorrectionDepA_element <- get
1005+
_msgSsrGriddedCorrectionDepA_index <- getWord16le
1006+
_msgSsrGriddedCorrectionDepA_tropo_delay_correction <- get
1007+
_msgSsrGriddedCorrectionDepA_stec_residuals <- whileM (not <$> isEmpty) get
10431008
pure MsgSsrGriddedCorrectionDepA {..}
10441009

10451010
put MsgSsrGriddedCorrectionDepA {..} = do
10461011
put _msgSsrGriddedCorrectionDepA_header
1047-
put _msgSsrGriddedCorrectionDepA_element
1012+
putWord16le _msgSsrGriddedCorrectionDepA_index
1013+
put _msgSsrGriddedCorrectionDepA_tropo_delay_correction
1014+
mapM_ put _msgSsrGriddedCorrectionDepA_stec_residuals
10481015

10491016
$(makeSBP 'msgSsrGriddedCorrectionDepA ''MsgSsrGriddedCorrectionDepA)
10501017
$(makeJSON "_msgSsrGriddedCorrectionDepA_" ''MsgSsrGriddedCorrectionDepA)

javascript/sbp.bundle.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/sbp/RELEASE-VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.11-alpha
1+
4.0.0

jsonschema/MsgSsrGriddedCorrection.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@
1717
"type": "object",
1818
"properties": {
1919
"header": {"$ref": "GriddedCorrectionHeader.json"},
20-
"element": {"$ref": "GridElement.json"}
20+
"index": {"type": "integer"},
21+
"tropo_delay_correction": {"$ref": "TroposphericDelayCorrection.json"},
22+
"stec_residuals": {"type": "array", "items": {"$ref": "STECResidual.json"}}
2123
},
2224
"required": [
2325
"header",
24-
"element"
26+
"index",
27+
"tropo_delay_correction",
28+
"stec_residuals"
2529
]
2630
}

proto/ssr.proto

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -125,28 +125,6 @@ message STECResidual {
125125
uint32 stddev = 3;
126126
}
127127

128-
/** Correction data for a single grid point
129-
*
130-
* Contains one tropo delay, plus STEC residuals for each satellite at the
131-
* grid point.
132-
*/
133-
message GridElementNoStd {
134-
uint32 index = 1;
135-
TroposphericDelayCorrectionNoStd tropo_delay_correction = 2;
136-
repeated STECResidualNoStd stec_residuals = 3;
137-
}
138-
139-
/** Correction data for a single grid point
140-
*
141-
* Contains one tropo delay (mean and stddev), plus STEC residuals (mean and
142-
* stddev) for each satellite at the grid point.
143-
*/
144-
message GridElement {
145-
uint32 index = 1;
146-
TroposphericDelayCorrection tropo_delay_correction = 2;
147-
repeated STECResidual stec_residuals = 3;
148-
}
149-
150128
/** Precise orbit and clock correction
151129
*
152130
* The precise orbit and clock correction message is to be applied as a delta
@@ -226,7 +204,9 @@ message MsgSsrStecCorrection {
226204
*/
227205
message MsgSsrGriddedCorrection {
228206
GriddedCorrectionHeader header = 1;
229-
GridElement element = 2;
207+
uint32 index = 2;
208+
TroposphericDelayCorrection tropo_delay_correction = 3;
209+
repeated STECResidual stec_residuals = 4;
230210
}
231211

232212
/** Definition of a SSR atmospheric correction tile.

rust/sbp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[package]
99
name = "sbp"
10-
version = "3.4.11-alpha"
10+
version = "4.0.0"
1111
description = "Rust native implementation of SBP (Swift Binary Protocol) for communicating with devices made by Swift Navigation"
1212
authors = ["Swift Navigation <[email protected]>"]
1313
repository = "https://github.com/swift-nav/libsbp"

rust/sbp2json/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[package]
99
name = "sbp2json"
10-
version = "3.4.11-alpha"
10+
version = "4.0.0"
1111
authors = ["Swift Navigation <[email protected]>"]
1212
edition = "2018"
1313

0 commit comments

Comments
 (0)