|
@@ -33,6 +33,9 @@ MainWindow * gw;
|
|
|
|
|
|
void ListenRaw(const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname)
|
|
|
{
|
|
|
+ (void)index;
|
|
|
+ (void)dt;
|
|
|
+ (void)strmemname;
|
|
|
iv::gps::gpsimu xgpsimu;
|
|
|
if(!xgpsimu.ParseFromArray(strdata,nSize))
|
|
|
{
|
|
@@ -73,6 +76,9 @@ void ListenRaw(const char * strdata,const unsigned int nSize,const unsigned int
|
|
|
|
|
|
void ListenFusion(const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname)
|
|
|
{
|
|
|
+ (void)index;
|
|
|
+ (void)dt;
|
|
|
+ (void)strmemname;
|
|
|
iv::gps::gpsimu xgpsimu;
|
|
|
if(!xgpsimu.ParseFromArray(strdata,nSize))
|
|
|
{
|
|
@@ -123,7 +129,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
void * paraw = iv::modulecomm::RegisterRecv(gstr_memname,ListenRaw);
|
|
|
void * pafusion = iv::modulecomm::RegisterRecv("fusion_gpsimu",ListenFusion);
|
|
|
|
|
|
-
|
|
|
+ (void)paraw;
|
|
|
+ (void)pafusion;
|
|
|
QTimer * timer = new QTimer(this);
|
|
|
connect(timer,SIGNAL(timeout()),this,SLOT(onTimer()));
|
|
|
timer->start(5);
|
|
@@ -313,6 +320,7 @@ void MainWindow::CreateTab3View(QTabWidget * p)
|
|
|
|
|
|
void MainWindow::resizeEvent(QResizeEvent *event)
|
|
|
{
|
|
|
+ (void)event;
|
|
|
// qDebug("resize");
|
|
|
QSize sizemain = ui->centralWidget->size();
|
|
|
// qDebug("size x = %d y=%d",sizemain.width(),sizemain.height());
|
|
@@ -341,6 +349,7 @@ inline void MainWindow::SetLEView(int nTab, const char *strName, double value, c
|
|
|
{
|
|
|
std::string str = x;
|
|
|
const char * y = str.data();
|
|
|
+ (void)y;
|
|
|
if(strcmp(str.data(), strName) == 0)
|
|
|
{
|
|
|
|
|
@@ -357,6 +366,7 @@ inline void MainWindow::SetLEView(int nTab, const char *strName, double value, c
|
|
|
{
|
|
|
std::string str = x;
|
|
|
const char * y = str.data();
|
|
|
+ (void)y;
|
|
|
if(strcmp(str.data(), strName) == 0)
|
|
|
{
|
|
|
|
|
@@ -390,6 +400,7 @@ inline void MainWindow::SetLEView(int nTab, const char *strName, double value, c
|
|
|
{
|
|
|
std::string str = x;
|
|
|
const char * y = str.data();
|
|
|
+ (void)y;
|
|
|
if(strcmp(str.data(), strName) == 0)
|
|
|
{
|
|
|
|
|
@@ -514,6 +525,7 @@ void MainWindow::onTimer()
|
|
|
static int nLastFusion = 0;
|
|
|
bool bRawGet = false;
|
|
|
bool bFusionGet = false;
|
|
|
+ (void)bFusionGet;
|
|
|
iv::gps::gpsimu rawgpsimu,fusiongpsimu;
|
|
|
if(nLastRaw < gcountRaw[0])
|
|
|
{
|