|
@@ -636,12 +636,15 @@ void DataExchangeClient::run()
|
|
|
}
|
|
|
|
|
|
int lastTime = xTime.elapsed();
|
|
|
+ int realLastTime = xTime.elapsed();
|
|
|
uint64_t interval = std::atoi(gstruploadInterval.c_str());
|
|
|
while (!QThread::isInterruptionRequested())
|
|
|
{
|
|
|
if(abs(xTime.elapsed() - lastTime)>=interval)
|
|
|
{
|
|
|
- updateData(abs(xTime.elapsed() - lastTime));
|
|
|
+ int realInterval = abs(xTime.elapsed() - realLastTime);
|
|
|
+ realLastTime = xTime.elapsed();
|
|
|
+ updateData(realInterval);
|
|
|
std::string reply = uploadVehicleInfo();
|
|
|
// std::cout<< reply <<std::endl;
|
|
|
// std::cout<<std::setprecision(12)<<destinationPosition.latitude()<<","<<destinationPosition.longitude()<<std::endl;
|