rock_widget_collection  0.1
sonarTest.cpp
Go to the documentation of this file.
1 #include "SonarView.h"
2 
3 #include <QApplication>
4 
5 int main(int argc, char **argv){
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
int main(int argc, char **argv)
Definition: sonarTest.cpp:5