Changeset 158 in flair-src for trunk/demos/SimpleFleet
- Timestamp:
- Mar 5, 2017, 10:50:56 AM (8 years ago)
- Location:
- trunk/demos/SimpleFleet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/SimpleFleet/simulator/src/main.cpp
r33 r158 84 84 int main(int argc, char* argv[]) 85 85 { 86 86 Simulator *simu; 87 87 88 88 parseOptions(argc,argv); 89 89 90 simu= new Simulator("simulator",opti_time,90); 91 simu->SetupConnection(address,port); 92 simu->SetupUserInterface(xml_file); 90 simu= new Simulator("simulator",opti_time,90); 91 simu->SetupConnection(address,port); 92 simu->SetupUserInterface(xml_file); 93 #ifdef GL 94 Parser *gui=new Parser(1024,768,1024,768,media_path,scene_file); 95 #endif 96 for(int i=0; i<2;i++) { 97 stringstream uavName; 98 uavName << name.c_str() << "_" << i; 99 Model *drone=new X8(uavName.str(),i); 93 100 #ifdef GL 94 Parser *gui=new Parser(simu,640,480,640,480,media_path,scene_file);101 SimuUsGL *us_gl=new SimuUsGL(drone,"us",i,0); 95 102 #endif 96 for(int i=0; i<2;i++) 97 { 98 stringstream s; 99 s << name.c_str() << "_" << i; 100 Model *drone=new X8(simu,s.str(),i); 101 #ifdef GL 102 SimuUsGL *us_gl=new SimuUsGL(drone,"us",i); 103 #endif 104 SimuImu *imu=new SimuImu(drone,"imu",i); 105 } 103 SimuImu *imu=new SimuImu(drone,"imu",i,0); 104 } 106 105 107 106 simu->RunSimu(); 108 107 109 108 delete simu; 110 109 111 110 return 0; -
trunk/demos/SimpleFleet/uav/build_x86_64/bin/setup_x8.xml
r91 r158 135 135 </DataPlot1D> 136 136 </Tab> 137 < /TabWidget>137 <Tab name="Quaternion"><DataPlot1D name="q0" period="100" enabled="0"/><DataPlot1D name="q1" period="100" enabled="0"/><DataPlot1D name="q2" period="100" enabled="0"/><DataPlot1D name="q3" period="100" enabled="0"/></Tab><Tab name="IMU"><DataPlot1D name="acc_x" period="100" enabled="0"/><DataPlot1D name="acc_y" period="100" enabled="0"/><DataPlot1D name="acc_z" period="100" enabled="0"/><DataPlot1D name="gyr_x" period="100" enabled="0"/><DataPlot1D name="gyr_y" period="100" enabled="0"/><DataPlot1D name="gyr_z" period="100" enabled="0"/><DataPlot1D name="mag_x" period="100" enabled="0"/><DataPlot1D name="mag_y" period="100" enabled="0"/><DataPlot1D name="mag_z" period="100" enabled="0"/></Tab></TabWidget> 138 138 </Tab> 139 139 <Tab name="battery"> … … 340 340 </Tab> 341 341 </TabWidget> 342 <TabWidget name="App_TabWidget"><Tab name="x8_0"><PushButton name="save config on target" value="1"/></Tab><Tab name="x8_1"><PushButton name="save config on target" value="1"/></Tab></TabWidget>< /root>342 <TabWidget name="App_TabWidget"><Tab name="x8_0"><PushButton name="save config on target" value="1"/></Tab><Tab name="x8_1"><PushButton name="save config on target" value="1"/></Tab></TabWidget><PushButton name="save config on target (x8_0)" value="1"/></root>
Note:
See TracChangeset
for help on using the changeset viewer.