Changeset 38 in flair-src for trunk/demos/SimpleFleet/uav
- Timestamp:
- Jun 23, 2016, 10:15:30 AM (8 years ago)
- Location:
- trunk/demos/SimpleFleet/uav/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/SimpleFleet/uav/src/SimpleFleet.cpp
r33 r38 13 13 14 14 #include "SimpleFleet.h" 15 #include <TargetController.h> 15 16 #include <Uav.h> 16 17 #include <GridLayout.h> … … 49 50 50 51 51 SimpleFleet::SimpleFleet(flair::meta::Uav* uav,string broadcast, uint16_t ds3port): UavStateMachine(uav,ds3port), behaviourMode(BehaviourMode_t::Default), vrpnLost(false) {52 SimpleFleet::SimpleFleet(flair::meta::Uav* uav,string broadcast,TargetController *controller): UavStateMachine(uav,controller), behaviourMode(BehaviourMode_t::Default), vrpnLost(false) { 52 53 uav->SetupVRPNAutoIP(uav->ObjectName()); 53 54 -
trunk/demos/SimpleFleet/uav/src/SimpleFleet.h
r33 r38 34 34 class SimpleFleet : public flair::meta::UavStateMachine { 35 35 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); 37 37 ~SimpleFleet(); 38 38 -
trunk/demos/SimpleFleet/uav/src/main.cpp
r33 r38 17 17 #include <stdio.h> 18 18 #include <tclap/CmdLine.h> 19 #include <TargetEthController.h> 19 20 20 21 using namespace TCLAP; … … 22 23 using namespace flair::core; 23 24 using namespace flair::meta; 25 using namespace flair::sensor; 24 26 25 27 string uav_type; … … 45 47 46 48 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); 48 51 49 52 demo->Start();
Note:
See TracChangeset
for help on using the changeset viewer.