Changeset 38 in flair-src for trunk/demos/SimpleFleet/uav/src


Ignore:
Timestamp:
Jun 23, 2016, 10:15:30 AM (5 years ago)
Author:
Bayard Gildas
Message:

Modif. pour ajour manette émulée (EmulatedController?)

Location:
trunk/demos/SimpleFleet/uav/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/SimpleFleet/uav/src/SimpleFleet.cpp

    r33 r38  
    1313
    1414#include "SimpleFleet.h"
     15#include <TargetController.h>
    1516#include <Uav.h>
    1617#include <GridLayout.h>
     
    4950
    5051
    51 SimpleFleet::SimpleFleet(flair::meta::Uav* uav,string broadcast,uint16_t ds3port): UavStateMachine(uav,ds3port), behaviourMode(BehaviourMode_t::Default), vrpnLost(false) {
     52SimpleFleet::SimpleFleet(flair::meta::Uav* uav,string broadcast,TargetController *controller): UavStateMachine(uav,controller), behaviourMode(BehaviourMode_t::Default), vrpnLost(false) {
    5253    uav->SetupVRPNAutoIP(uav->ObjectName());
    5354
  • trunk/demos/SimpleFleet/uav/src/SimpleFleet.h

    r33 r38  
    3434class SimpleFleet : public flair::meta::UavStateMachine {
    3535    public:
    36         SimpleFleet(flair::meta::Uav* uav,std::string broadcast,uint16_t ds3port);
     36        SimpleFleet(flair::meta::Uav* uav,std::string broadcast,flair::sensor::TargetController *controller);
    3737        ~SimpleFleet();
    3838
  • trunk/demos/SimpleFleet/uav/src/main.cpp

    r33 r38  
    1717#include <stdio.h>
    1818#include <tclap/CmdLine.h>
     19#include <TargetEthController.h>
    1920
    2021using namespace TCLAP;
     
    2223using namespace flair::core;
    2324using namespace flair::meta;
     25using namespace flair::sensor;
    2426
    2527string uav_type;
     
    4547
    4648    Uav* drone=CreateUav(manager,name,uav_type);
    47     SimpleFleet* demo=new SimpleFleet(drone,broadcast,ds3port);
     49    TargetEthController *controller=new TargetEthController(manager,"Dualshock3",ds3port);
     50    SimpleFleet* demo=new SimpleFleet(drone,broadcast,controller);
    4851
    4952    demo->Start();
Note: See TracChangeset for help on using the changeset viewer.