1.添加了EGM96-5的数据集和算法支持,可以正确求解GEOID Offset高度。
2.在同步时间时现在会将起飞点的海拔高度写回到配置文件/home/data/Settings/MainSettings.ini键值为WBACK/HeightOfHomePoint 3.现在的高度回调函数以及获取函数调整为了DJI_FC_SUBSCRIPTION_TOPIC_ALTITUDE_FUSED。
This commit is contained in:
@ -15,14 +15,15 @@
|
||||
#include "MainAcqThread.h"
|
||||
#include "DataFileManager.h"
|
||||
#include "Logger.h"
|
||||
#include "EGM96/EGM96.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int argc = 0;
|
||||
QCoreApplication Grixis(argc, NULL);
|
||||
|
||||
|
||||
|
||||
QEventLoop qeLoop;
|
||||
QTimer::singleShot(15000, &qeLoop, SLOT(quit()));
|
||||
qeLoop.exec();
|
||||
@ -37,6 +38,35 @@ int main()
|
||||
|
||||
Grixis.exec();
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////test EGM96
|
||||
// qDebug() << "entering time:" << QTime::currentTime();
|
||||
// QTime currentTime;
|
||||
// QTime lastTime;
|
||||
// int elapsed = 0;
|
||||
//
|
||||
// if (lastTime == QTime())
|
||||
// {
|
||||
// lastTime = QTime::currentTime();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// currentTime = QTime::currentTime();
|
||||
// elapsed = lastTime.msecsTo(currentTime);
|
||||
// lastTime = QTime::currentTime();
|
||||
// }
|
||||
//
|
||||
// qDebug() << "Run.elapsed =" << elapsed << "ms";
|
||||
//
|
||||
// for (int i=0;i<10;i++)
|
||||
// {
|
||||
//
|
||||
// double a = egm96_compute_altitude_offset(32.34116099116942, 87.55318631548599);
|
||||
// qDebug() << a;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// qDebug() << "leave time:" << QTime::currentTime();
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////Gas test
|
||||
// IrisSensor_Gas_P0 m_testgas;
|
||||
// unsigned long ulco2, ulh20;
|
||||
|
Reference in New Issue
Block a user