comparison CollidoscopeApp/src/CollidoscopeApp.cpp @ 18:f1ff1a81be20 tip

Changed licenses names. Fixed one comment and usage text in CollidoscopeApp.cpp.
author Fiore Martin <f.martin@qmul.ac.uk>
date Thu, 25 Aug 2016 12:07:50 +0200
parents 4dad0b810f18
children
comparison
equal deleted inserted replaced
17:4f09a3f3a031 18:f1ff1a81be20
354 uint16_t value = m.getData_1(); // LSB 354 uint16_t value = m.getData_1(); // LSB
355 355
356 value |= MSB; 356 value |= MSB;
357 357
358 358
359 // value ranges from 0 to 1050. check boundaries in case sensor gives bad values 359 // value ranges from 0 to 149. check boundaries in case sensor gives bad values
360 if ( value > 149 ){ // FIXME pareametrizer 360 if ( value > 149 ){ // FIXME can use wave.size()
361 continue; 361 continue;
362 } 362 }
363 363
364 size_t startChunk = value; 364 size_t startChunk = value;
365 365
459 height = std::stoi( args[2] ); 459 height = std::stoi( args[2] );
460 460
461 } 461 }
462 catch( std::invalid_argument & e ){ 462 catch( std::invalid_argument & e ){
463 console() << "Error: invalid arguments" << std::endl; 463 console() << "Error: invalid arguments" << std::endl;
464 console() << "Usage: ./Collidoscope window_width window_height" << std::endl; 464 console() << "Usage: ./CollidoscopeApp window_width window_height" << std::endl;
465 console() << "For example: ./Collidoscope 1024 768 " << std::endl; 465 console() << "For example: ./CollidoscopeApp 1024 768 " << std::endl;
466 466
467 settings->setShouldQuit( true ); 467 settings->setShouldQuit( true );
468 return; 468 return;
469 } 469 }
470 470