# RealTimeSpp **Repository Path**: rebeater/RealTimeSpp ## Basic Information - **Project Name**: RealTimeSpp - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2021-10-31 - **Last Updated**: 2022-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## A real-time demo for Single Point Position based on RTKlib ### build install pybind11 ```shell sudo apt install pybind11-dev ``` install glog and fmt only for debug ### RUN to use real-time spp,you need 1. create SPP object ```c++ RealTimeSpp spp; ``` ```python import PySpp as spp spp.Initialize() ``` 2. read ephemeris file ```c++ spp.LoadNavFromRnx(nav_file_name); ``` ```python spp.LoadNavFromRnx(nav_file_name) ``` 3. load observation information ```c++ // eg: line:J02 38982183.414 8 204852755.586 8 -449.168 50.000 38982185.500 8 159625530.574 8 -350.000 51.000 spp.Update(gps_week, gps_sec, line); ``` ```python spp.Update(gps_week, gps_sec, line); ``` 4. get SPP position result ```c++ /*return false for no valid data*/ spp.GetSppPosition(&pos) ``` ```python pos = spp.GetSppPosition() # return false if position failed ``` 5 In python, Do NOT forget to close the Object ```python spp.Close() ```