Skip to content

Commit

Permalink
Added RTKIB licence info.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliasam committed Mar 2, 2024
1 parent 52c6bf8 commit af0e3da
Show file tree
Hide file tree
Showing 11 changed files with 110 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Firmware/project_main/EWARM/IAR_Project.dep
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<outputs>
<tool>
<name>ILINK</name>
<file> 97 130</file>
<file> 130 97</file>
</tool>
</outputs>
</file>
Expand Down
38 changes: 38 additions & 0 deletions Firmware/project_main/GPS/RTK/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
LICENSE

The RTKLIB software package is distributed under the following BSD 2-clause
license (http://opensource.org/licenses/BSD-2-Clause) and additional two
exclusive clauses. Users are permitted to develop, produce or sell their own
non-commercial or commercial products utilizing, linking or including RTKLIB as
long as they comply with the license.

Copyright (c) 2007-2013, T. Takasu, All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

- The software package includes some companion executive binaries or shared
libraries necessary to execute APs on Windows. These licenses succeed to the
original ones of these software.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Notes:
Previous versions of RTKLIB until ver. 2.4.1 had been distributed under GPLv3
(http://www.gnu.org/licenses/gpl-3.0.en.html) license.
1 change: 1 addition & 0 deletions Firmware/project_main/GPS/RTK/rtcm3e.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//Based on RTKLIB
/*------------------------------------------------------------------------------
* rtcm3e.c : rtcm ver.3 message encoder functions
*
Expand Down
2 changes: 2 additions & 0 deletions Firmware/project_main/GPS/RTK/rtk_common.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//Based on RTKLIB

#ifndef _RTCM_COMMON_H
#define _RTCM_COMMON_H

Expand Down
2 changes: 2 additions & 0 deletions Firmware/project_main/GPS/RTK/rtklib_common.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//Based on RTKLIB

#include "rtk_common.h"
#include "math.h"

Expand Down
1 change: 1 addition & 0 deletions Firmware/project_main/GPS/RTK/solving.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//Based on RTKLIB
//Part of this code is taken from here: /~https://github.com/ndhuan/GPSRTK

//Finding receiver position by observations (time+pseudoranges) and
Expand Down
2 changes: 2 additions & 0 deletions Firmware/project_main/GPS/RTK/solving.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//Based on RTKLIB

#ifndef _GPS_SOLVING_H
#define _GPS_SOLVING_H

Expand Down
2 changes: 2 additions & 0 deletions Firmware/project_main/GPS/gps_misc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//Based on RTKLIB

#ifndef _GPS_MISC_H
#define _GPS_MISC_H

Expand Down
38 changes: 38 additions & 0 deletions Firmware/project_single_sat/GPS/RTKLIB_LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
LICENSE

The RTKLIB software package is distributed under the following BSD 2-clause
license (http://opensource.org/licenses/BSD-2-Clause) and additional two
exclusive clauses. Users are permitted to develop, produce or sell their own
non-commercial or commercial products utilizing, linking or including RTKLIB as
long as they comply with the license.

Copyright (c) 2007-2013, T. Takasu, All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

- The software package includes some companion executive binaries or shared
libraries necessary to execute APs on Windows. These licenses succeed to the
original ones of these software.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Notes:
Previous versions of RTKLIB until ver. 2.4.1 had been distributed under GPLv3
(http://www.gnu.org/licenses/gpl-3.0.en.html) license.
43 changes: 22 additions & 21 deletions Firmware/project_single_sat/GPS/gps_misc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//Based on RTKLIB
#ifndef _GPS_MISC_H
#define _GPS_MISC_H

Expand Down Expand Up @@ -61,19 +62,19 @@ typedef struct
float if_freq_offset_hz;//doppler
uint32_t if_freq_accum;//NCO accumulator for keeping phase stable
uint16_t pre_track_phases[PRE_TRACK_POINTS_MAX_CNT];
uint8_t pre_track_count;
uint8_t pre_track_count;

float code_phase_fine;//1 step is (0.5chip / 8)

uint8_t debug_flag;
uint8_t debug_flag;

float dll_code_err;//Prev. code error, for filtering
float pll_code_err;//Prev. carrier phase error, for filtering, rad
int16_t fll_old_i;
int16_t fll_old_q;
int16_t fll_old_i;
int16_t fll_old_q;

int16_t pll_check_buf[TRACKING_CH_LENGTH];//For checking that PLL is in right lock
uint8_t pll_bad_state_cnt;//Couner of bad state detections
int16_t pll_check_buf[TRACKING_CH_LENGTH];//For checking that PLL is in right lock
uint8_t pll_bad_state_cnt;//Couner of bad state detections
uint16_t pll_bad_state_master_cnt;//Couner of bad state detections

gps_tracking_state_t state;
Expand All @@ -83,7 +84,7 @@ typedef struct
{
uint8_t period_sync_ok_flag;
uint8_t right_period_cnt;
uint32_t old_swap_time;//Perv time of sign sitch detection, PRN cunter ticks
uint32_t old_swap_time;//Perv time of sign sitch detection, PRN cunter ticks
uint8_t old_reminder;//Used for nav bit extraction

uint8_t last_bit_pos_cnt;
Expand All @@ -103,24 +104,24 @@ typedef struct
} gps_nav_data_t;

typedef struct { /* time struct */
time_t time; /* time (s) expressed by standard time_t */
double sec; /* fraction of second under 1 s */
time_t time; /* time (s) expressed by standard time_t */
double sec; /* fraction of second under 1 s */
} gtime_t;

typedef struct { /* GPS/QZS/GAL broadcast ephemeris type */
int sat; /* satellite number */
int iode, iodc; /* IODE,IODC */
int sva; /* SV accuracy (URA index) */
int svh; /* SV health (0:ok) */
int week; /* GPS/QZS: gps week, GAL: galileo week */
int code; /* GPS/QZS: code on L2, GAL/CMP: data sources */
int flag; /* GPS/QZS: L2 P data flag, CMP: nav type */
int sat; /* satellite number */
int iode, iodc; /* IODE,IODC */
int sva; /* SV accuracy (URA index) */
int svh; /* SV health (0:ok) */
int week; /* GPS/QZS: gps week, GAL: galileo week */
int code; /* GPS/QZS: code on L2, GAL/CMP: data sources */
int flag; /* GPS/QZS: L2 P data flag, CMP: nav type */
gtime_t toe, toc, ttr; /* Toe,Toc,T_trans */
/* SV orbit parameters */
double A, e, i0, OMG0, omg, M0, deln, OMGd, idot;
double crc, crs, cuc, cus, cic, cis;
double toes; /* Toe (s) in week */
double fit; /* fit interval (h) */
double toes; /* Toe (s) in week */
double fit; /* fit interval (h) */
double f0, f1, f2; /* SV clock parameters (af0,af1,af2) */
double tgd[4]; /* group delay parameters */
/* GPS/QZS:tgd[0]=TGD */
Expand All @@ -145,10 +146,10 @@ typedef struct {

typedef struct
{
gps_acq_t acq_data;//Acq variables
gps_acq_t acq_data;//Acq variables
gps_tracking_t tracking_data;
gps_nav_data_t nav_data;
sdreph_t eph_data;
gps_nav_data_t nav_data;
sdreph_t eph_data;
uint8_t prn; //Sat PRN code
uint8_t prn_code[PRN_LENGTH];//PRN data (0/1), generated at the start, 1023 bytes
} gps_ch_t;
Expand Down
1 change: 1 addition & 0 deletions Firmware/project_single_sat/GPS/nav_data_decode.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//Based on RTKLIB
#include "stdint.h"
#include "string.h"
#include "stdlib.h"
Expand Down

0 comments on commit af0e3da

Please sign in to comment.