Open LucaFibbi opened 4 years ago
Thanks, I tested a lot of data and didn't find this assert out of range. If convenient, you can send your test data to my email (xiaogongwei@asch.whigg.ac.cn). I have chenged epochLenLB - del_len > 5 to epochLenLB - del_len > =5
After the latest repository updates, the program end without assert. Therefore I don't have the data for the test.
Thanks
Again the program ends with an assert. The code throw the assert in the function
SRIFAlgorithm::changeSRIFPara
to the line 207 of the file SRIFAlgorithm.cpp when the program attempts to access beyond the size of the variabletempXk_1
The local variable
tempXk_1
is equal toSRIFAlgorithm::m_Xk
variable. I looked where the size of the variablem_Xk
change.m_Xk
is resize with an incorrect size in the functionSRIFAlgorithm::SRIFforStatic
at line 651.The assert happens when in function
SRIFAlgorithm::SRIFforStatic
gross_LC = true
andepochLenLB - del_len > 5
is false andepochLenLB=6
anddel_len=1
This in my opinion is the cause of the error. I don't know how to change the code to correct the error.
I think that the line 600 in the file SRIFAlgorithm.cpp can be changed like this:
if((epochLenLB - del_len) >= 5)
Even with 5 satellites it is possible to calculate the position.