rock_widget_collection  0.1
Functions
sonarTest.cpp File Reference
#include "SonarView.h"
#include <QApplication>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 5 of file sonarTest.cpp.

5  {
6  QApplication qapp(argc,argv);
7  SonarView sw;
8  sw.show();
9  char data[600];
10  for(double i=0;i<2.0*M_PI; i+=(2.0*M_PI)/6399.0){
11  for(int j=0;j<600;j++){
12  data[j]=255;
13  }
14  sw.setSonarScan(data,600,i/6399.0*2.0*M_PI,0.000094,false);
15  }
16  qapp.exec();
17 
18 
19 }
void setSonarScan(const char *data, int size, double angle, double timeBetweenBins, bool fromBearing=false)
Definition: SonarView.cc:66