Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proper implementation for BDSBAS #660

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d0fdf9a
add svid and frequency
Narugakuruga Oct 31, 2023
2519636
formatting
Narugakuruga Oct 31, 2023
e529079
Update SBAS Type
Narugakuruga Oct 31, 2023
3cd7e00
Update SbasType.java
Narugakuruga Oct 31, 2023
d1ee620
Update CarrierFreq database test
Narugakuruga Oct 31, 2023
eb347db
Update SatelliteUtil.kt
Narugakuruga Oct 31, 2023
4ba0eb9
Update UI strings
Narugakuruga Oct 31, 2023
6a280b1
Wear UI
Narugakuruga Oct 31, 2023
1c3a811
Update gps_sky_legend_card.xml
Narugakuruga Oct 31, 2023
4ddc4ab
Update strings.xml
Narugakuruga Oct 31, 2023
a148829
Update strings.xml
Narugakuruga Oct 31, 2023
de4830c
Update strings.xml
Narugakuruga Oct 31, 2023
ce0c315
revert strings.xml
Narugakuruga Oct 31, 2023
164897e
revert gps_sky_legend_card.xml
Narugakuruga Oct 31, 2023
fc17196
revert MainActivity.kt
Narugakuruga Oct 31, 2023
27a71a7
revert strings.xml
Narugakuruga Oct 31, 2023
93fed61
Update strings.xml
Narugakuruga Oct 31, 2023
6b0e530
Update strings.xml
Narugakuruga Oct 31, 2023
7dd5a1b
Update strings.xml
Narugakuruga Oct 31, 2023
bab96d4
Update FAQ.md
Narugakuruga Oct 31, 2023
d3a0f1d
Update README.md
Narugakuruga Oct 31, 2023
c29de3b
Update CarrierFreqUtilsTest.kt
Narugakuruga Oct 31, 2023
ebd224a
Update StatusScreen.kt
Narugakuruga Oct 31, 2023
ee05bd2
Update SbasType.java
Narugakuruga Oct 31, 2023
bf59939
Update SatelliteUtil.kt
Narugakuruga Oct 31, 2023
390a5d4
Update MainActivity.kt
Narugakuruga Oct 31, 2023
a665b1b
Update SatelliteUtil.kt
Narugakuruga Oct 31, 2023
525f187
Fix virable
Narugakuruga Nov 6, 2023
210965a
Update CarrierFreqUtilsTest.kt
Narugakuruga Nov 6, 2023
b8828a7
Update CarrierFreqUtilsTest.kt
Narugakuruga Nov 6, 2023
201de88
Update CarrierFreqUtils.java
Narugakuruga Nov 6, 2023
6f834c1
Update CarrierFreqUtils.java
Narugakuruga Nov 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ More details are in the European Global Navigation Satellite System Agency (GSA)
* GPS-aided GEO augmented navigation (GAGAN) (India)
* Multi-functional Satellite Augmentation System (MSAS) (Japan)
* System for Differential Corrections and Monitoring (SDCM) (Russia)
* Satellite Navigation Augmentation System (SNAS) (China)
* BeiDou Satellite-Based Augmentation System (BDSBAS) (China)
* Soluciόn de Aumentaciόn para Caribe, Centro y Sudamérica (SACCSA) (ICAO)

For lists of upcoming satellite launches and real-time satellite status on-line see https://github.com/barbeau/awesome-gnss#lists.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,102 @@ class CarrierFreqUtilsTest {

label = CarrierFreqUtils.getCarrierFrequencyLabel(southpan122L5)
assertEquals("L5", label)


// BDSBAS 130 B1C
val snas130B1C = SatelliteStatus(130,
GnssType.SBAS,
30f,
true,
true,
true,
72f,
25f);
snas130B1C.hasCarrierFrequency = true
snas130B1C.carrierFrequencyHz = 1575420000.0
snas130B1C.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas130B1C)
assertEquals("B1C", label)

// BDSBAS 130 B2a
val snas130B2a = SatelliteStatus(130,
GnssType.SBAS,
30f,
true,
true,
true,
72f,
25f);
snas130B2a.hasCarrierFrequency = true
snas130B2a.carrierFrequencyHz = 1176450000.0
snas130B2a.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas130B2a)
assertEquals("B2a", label)

// BDSBAS 143 B1C
val snas143B1C = SatelliteStatus(143,
GnssType.SBAS,
30f,
true,
true,
true,
72f,
25f);
snas143B1C.hasCarrierFrequency = true
snas143B1C.carrierFrequencyHz = 1575420000.0
snas143B1C.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas143B1C)
assertEquals("B1C", label)

// BDSBAS 143 B2a
val snas143B2a = SatelliteStatus(122,
GnssType.SBAS,
30f,
true,
true,
true,
72f,
25f);
snas143B2a.hasCarrierFrequency = true
snas143B2a.carrierFrequencyHz = 1176450000.0
snas143B2a.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas143B2a)
assertEquals("B2a", label)

// BDSBAS 144 B1C
val snas144B1C = SatelliteStatus(144,
GnssType.SBAS,
30f,
true,
true,
true,
72f,
25f);
snas144B1C.hasCarrierFrequency = true
snas144B1C.carrierFrequencyHz = 1575420000.0
snas144B1C.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas144B1C)
assertEquals("B1C", label)

// BDSBAS 144 B2a
val snas144B2a = SatelliteStatus(144,
GnssType.SBAS,
30f,
true,
true,
true,
72f,
25f);
snas144B2a.hasCarrierFrequency = true
snas144B2a.carrierFrequencyHz = 1176450000.0
snas144B2a.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas144B2a)
assertEquals("B2a", label)

// Test variations on the "same" numbers to make sure floating point equality works
val gpsL1variation = SatelliteStatus(1,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ It supports dual-frequency¹ GNSS for:
* GPS-aided GEO augmented navigation (GAGAN) (India)
* Multi-functional Satellite Augmentation System (MSAS) (Japan)
* System for Differential Corrections and Monitoring (SDCM) (Russia)
* Satellite Navigation Augmentation System (SNAS) (China)
* BeiDou Satellite-Based Augmentation System (BDSBAS) (China)
* Soluciόn de Aumentaciόn para Caribe, Centro y Sudamérica (SACCSA) (ICAO)
* Southern Positioning Augmentation Network (SouthPAN) (Australia / New Zealand)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ object SatelliteUtil {
} else if (this == 125 || this == 140 || this == 141) {
return SbasType.SDCM
} else if (this == 130 || this == 143 || this == 144) {
// Also referred to as BDSBAS
// Was renamed to BDSBAS nowadays
return SbasType.SNAS
} else if (this == 131 || this == 133 || this == 135 || this == 138) {
return SbasType.WAAS
Expand Down
6 changes: 3 additions & 3 deletions library/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<string name="gagan_content_description">GAGAN</string>
<string name="msas_content_description">MSAS</string>
<string name="sdcm_content_description">SDCM</string>
<string name="snas_content_description">SNAS</string>
<string name="snas_content_description">BDSBAS</string>
<string name="saccsa_content_description">SACCSA</string>
<string name="southpan_content_description">SouthPAN</string>

Expand Down Expand Up @@ -192,7 +192,7 @@
<string name="sky_legend_shape_gagan">GAGAN (India)</string>
<string name="sky_legend_shape_msas">MSAS (Japan)</string>
<string name="sky_legend_shape_sdcm">SDCM (Russia)</string>
<string name="sky_legend_shape_snas">BDSBAS/SNAS (China)</string>
<string name="sky_legend_shape_snas">BDSBAS (China)</string>
<string name="sky_legend_shape_saccsa">SACCSA (ICAO)</string>
<string name="sky_legend_shape_southpan">SouthPAN (Australia / New Zealand)</string>

Expand Down Expand Up @@ -464,7 +464,7 @@
- Pentagons\n&#8226;\u0020
<b>IRNSS/NavIC (India)</b>
- Ovals\n&#8226;\u0020
<b>SBAS (WAAS, EGNOS, GAGAN, MSAS, SDCM, BDSBAS/SNAS, SACCSA, SouthPAN)</b>
<b>SBAS (WAAS, EGNOS, GAGAN, MSAS, SDCM, BDSBAS, SACCSA, SouthPAN)</b>
- Diamonds\n\n

&#8226;\u0020 Transparent satellites - Not in view\n
Expand Down
Loading