From ace123175a50f33bebe5507fbfe3de414bfa8576 Mon Sep 17 00:00:00 2001 From: Yann Meneroux Date: Tue, 21 Jun 2022 19:36:35 +0200 Subject: [PATCH] GNSS solve ambiguities on ref point --- src/Yann/ExcludeSats.cpp | 36 ++++++++++++++++------------ src/Yann/gnss/Algorithms.cpp | 46 ++++++++++++++++++++++++++++++++++++ src/Yann/gnss/Algorithms.h | 1 + 3 files changed, 68 insertions(+), 15 deletions(-) diff --git a/src/Yann/ExcludeSats.cpp b/src/Yann/ExcludeSats.cpp index 2d5b67cc09..51ccc5bae6 100755 --- a/src/Yann/ExcludeSats.cpp +++ b/src/Yann/ExcludeSats.cpp @@ -1092,6 +1092,9 @@ cAppli_YannSkyMask::cAppli_YannSkyMask(int argc, char ** argv){ // Down-grading h5py to earlier version System("pip install 'h5py==2.10.0' --force-reinstall"); + // Down-grading protobuf version + System("pip install 'protobuf~=3.19.0'"); + return; } @@ -1188,25 +1191,28 @@ cAppli_YannScript::cAppli_YannScript(int argc, char ** argv){ LArgMain() << EAM(mOut,"Ref", "file.o", "Rinex base station observation file")); - ObservationData rover = RinexReader::readObsFile(ImPattern); - ObservationData base = RinexReader::readObsFile(mOut); + ObservationData rov = RinexReader::readObsFile(ImPattern); + ObservationData bas = RinexReader::readObsFile(mOut); NavigationData nav = RinexReader::readNavFile(aPostIn); - rover.removeSatellite("G24"); - base.removeSatellite("G24"); - base.removeSatellite("G10"); - base.removeSatellite("G19"); - - NavigationDataSet eph = NavigationDataSet(); - eph.addGpsEphemeris(nav); - - Solution solution = Algorithms::triple_difference_kalman(rover, base, eph, base.getApproxAntennaPosition()); + ObservationSlot slot = rov.getObservationSlots().at(0); + GPSTime time = slot.getTimestamp(); + + std::vector SATS = slot.getSatellites(); + + std::string sat1 = "G16"; - std::cout << "------------------------------------------------------------------------------" << std::endl; - std::cout << rover.getApproxAntennaPosition() << std::endl; - std::cout << solution.getPosition() - rover.getApproxAntennaPosition() << std::endl; - std::cout << "------------------------------------------------------------------------------" << std::endl; + std::cout << std::endl; + std::cout << "-----------------------------" << std::endl; + + for (unsigned i=0; i makeTripleDifferenceMatrix(int, int);