Changeset 333 in flair-src for trunk/demos
- Timestamp:
- Oct 2, 2019, 11:07:51 AM (5 years ago)
- Location:
- trunk/demos/SimpleFleet
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/SimpleFleet/simulator/resources/core2-64/simulator_x8.sh
r302 r333 9 9 . $FLAIR_ROOT/flair-src/scripts/distribution_specific_hack.sh 10 10 11 $EXEC -n x8 -a 127.0.0.1 -p 9000 -x simulator_x8.xml -o 10 -m $FLAIR_ROOT/flair-src/models -s $FLAIR_ROOT/flair-src/models/indoor_flight_arena.xml 11 $EXEC -n x8 -a 127.0.0.1 -p 9000 -x simulator_x8.xml -o 10 -m $FLAIR_ROOT/flair-src/models -s $FLAIR_ROOT/flair-src/models/indoor_flight_arena.xml -t x8 -
trunk/demos/SimpleFleet/simulator/src/main.cpp
r291 r333 35 35 string name; 36 36 string address; 37 string type; 37 38 38 39 void parseOptions(int argc, char** argv) … … 62 63 ValueArg<string> addressArg("a","address","ground station address",true,"127.0.0.1","string"); 63 64 cmd.add( addressArg ); 65 66 ValueArg<string> typeArg("t", "type", "uav type, x4 or x8", true, "x4", "string"); 67 cmd.add(typeArg); 64 68 65 69 cmd.parse( argc, argv ); … … 71 75 opti_time = optiArg.getValue(); 72 76 name=nameArg.getValue(); 77 type = typeArg.getValue(); 73 78 #ifdef GL 74 79 media_path=mediaArg.getValue(); … … 84 89 85 90 86 int main(int argc, char* argv[]) 87 { 91 int main(int argc, char* argv[]) { 88 92 Simulator *simu; 89 93 … … 98 102 for(int i=0; i<2;i++) { 99 103 stringstream uavName; 104 Model *drone; 100 105 uavName << name.c_str() << "_" << i; 101 Model *drone=new X8(uavName.str(),i); 106 if(type == "x4") { 107 drone = new X4(uavName.str(),i); 108 } else { 109 drone = new X8(uavName.str(),i); 110 } 111 102 112 #ifdef GL 103 113 SimuUsGL *us_gl=new SimuUsGL(drone,"us",i,0);
Note:
See TracChangeset
for help on using the changeset viewer.