Changeset 123 in flair-src for trunk/demos/OpticalFlow/uav


Ignore:
Timestamp:
01/10/17 15:56:53 (5 years ago)
Author:
Sanahuja Guillaume
Message:

vision filter

Location:
trunk/demos/OpticalFlow/uav
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/OpticalFlow/uav/CMakeLists.txt

    r122 r123  
    44SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    55SET(FLAIR_USE_FILTER TRUE)
    6 #SET(FLAIR_USE_VISION_FILTER TRUE)
    76SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
     7SET(FLAIR_USE_VISION_FILTER TRUE)
    88SET(FLAIR_USE_META TRUE)
    99
  • trunk/demos/OpticalFlow/uav/src/main.cpp

    r122 r123  
    1818#include <tclap/CmdLine.h>
    1919#include <TargetEthController.h>
    20 #include <init.h>
     20#include <VisionFilter.h>
    2121
    2222using namespace TCLAP;
     
    4141    parseOptions(argc,argv);
    4242
     43                if(!InitVisionFilter("file="+dsp_file)) {
     44                        exit(1);
     45                }
     46               
    4347    FrameworkManager *manager;
    4448    manager= new FrameworkManager(name);
     
    4650    manager->SetupUserInterface(xml_file);
    4751    manager->SetupLogger(log_path);
    48     SetupDSP(dsp_file);
    4952
    5053    Uav* drone=CreateUav(name,uav_type);
     
    5760    delete manager;
    5861
    59     CloseDSP();
     62    CloseVisionFilter();
    6063}
    6164
Note: See TracChangeset for help on using the changeset viewer.