- Timestamp:
- Nov 3, 2016, 11:11:54 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseNotes
r87 r107 1 1 * Actual Version: 2 2 3 ----------------------------------------------------------- 4 * Tag 0.0.2: 5 6 - src/SensorActuator: quaternion support for 3dmgx3 3 7 - tool/FlairGCS: added rx rate display 4 8 - demos/SimpleFleet: new demo, 2 UAVs coordination 5 - sr s/FlairSimulator: added fixed camera9 - src/FlairSimulator: added fixed camera 6 10 7 11 ----------------------------------------------------------- -
trunk/lib/FlairMeta/src/HdsX8.cpp
r101 r107 62 62 } 63 63 */ 64 //SetVerticalCamera(new Ps3Eye(parent, "camv", 0, 50));64 SetVerticalCamera(new Ps3Eye(parent, "camv", 0, 50)); 65 65 } 66 66 … … 70 70 ((Gx3_25_ahrs *)GetAhrs())->Start(); 71 71 ((Srf08 *)GetUsRangeFinder())->Start(); 72 //((Ps3Eye *)GetVerticalCamera())->Start();72 ((Ps3Eye *)GetVerticalCamera())->Start(); 73 73 Uav::StartSensors(); 74 74 } -
trunk/lib/FlairSimulator/src/FixedCamera.cpp
r87 r107 43 43 camera->setPosition(vector3df(ToIrrlichtCoordinates(position))); 44 44 camera->setTarget(vector3df(ToIrrlichtCoordinates(lookat))); 45 target=vector3df(ToIrrlichtCoordinates(lookat)); 45 46 init=false; 46 47 rotation=camera->getRotation(); … … 62 63 ICameraSceneNode *camera = static_cast<ICameraSceneNode *>(node); 63 64 vector3df newRotation=rotation; 65 vector3df newTarget=target; 64 66 65 67 if(init==false) { … … 76 78 Rotating = true; 77 79 //nRotY = rotation.Y; 78 nRotZ =rotation.Z;80 //nRotZ =0;// rotation.Z; 79 81 } else { 80 82 nRotY = (RotateStart.Y - MousePos.Y) * rotateSpeed; 81 nRotZ += (RotateStart.X - MousePos.X) * rotateSpeed;83 nRotZ = (RotateStart.X - MousePos.X) * rotateSpeed; 82 84 newRotation.rotateXZBy(-nRotY); 83 85 //nRotY = sat(nRotY); 86 87 //newTarget.rotateXZBy(-nRotY,camera->getPosition()); 88 newTarget.rotateXYBy( nRotZ,camera->getPosition()); 89 camera->setTarget(newTarget); 84 90 } 85 91 } else if (Rotating) { … … 88 94 //rotation.Y = sat(rotation.Y); 89 95 //nRotY = rotation.Y; 90 nRotZ = rotation.Z;96 //nRotZ = rotation.Z; 91 97 Rotating = false; 98 target=camera->getTarget(); 99 rotation=camera->getRotation(); 100 printf("%f %f %f\n",rotation.X,rotation.Y,rotation.Z); 92 101 } 93 102 … … 102 111 } 103 112 104 113 //newTarget.rotateXZBy(-nRotY,camera->getPosition()); 114 // newTarget.rotateXYBy( nRotZ,camera->getPosition()); 105 115 106 116 //camera->setRotation(vector3df(rotation.X,-180-nRotY,nRotZ)); 107 117 //camera->setRotation(vector3df(rotation.X,nRotY,0)); 108 118 //camera->bindTargetAndRotation(true); 109 camera->setRotation(rotation);110 //camera->setTarget(vector3df(ToIrrlichtCoordinates(core::Vector3D(0,0,-2))));119 // camera->setRotation(rotation); 120 // camera->setTarget(newTarget); 111 121 //rotation=camera->getRotation(); 112 122 //printf("%f %f %f\n",rotation.X,rotation.Y,rotation.Z); -
trunk/lib/FlairSimulator/src/FixedCamera.h
r87 r107 34 34 float sat(float value); 35 35 irr::core::position2df RotateStart; 36 irr::core::vector3df rotation ;36 irr::core::vector3df rotation,target; 37 37 bool Rotating; 38 38 float rotateSpeed; -
trunk/tools/Controller/DualShock3/CMakeLists.txt
r39 r107 1 1 PROJECT(dualshock3) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) 4 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 3 6 4 7 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 5 6 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)7 8 include(${FLAIR_USE_FILE}) 8 9 … … 31 32 32 33 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 34 35 else() 36 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture") 37 endif() -
trunk/tools/Controller/Mavlink/CMakeLists.txt
r88 r107 1 1 PROJECT(MavPlanner) 2 2 cmake_minimum_required(VERSION 2.8) 3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) 3 4 4 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 6 5 7 include(${FLAIR_USE_FILE}) 6 8 … … 27 29 28 30 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 31 32 else() 33 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture") 34 endif() -
trunk/tools/Dbt2csv/CMakeLists.txt
r45 r107 2 2 cmake_minimum_required(VERSION 2.8) 3 3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) 4 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 4 6 5 7 SET(PROJECT_SOURCE_FILES … … 47 49 48 50 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 51 52 else() 53 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture") 54 endif() -
trunk/tools/FlairGCS/CMakeLists.txt
r88 r107 2 2 cmake_minimum_required(VERSION 2.8) 3 3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) 4 5 if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64") 4 6 5 7 execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion … … 85 87 86 88 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 89 90 else() 91 warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture") 92 endif()
Note:
See TracChangeset
for help on using the changeset viewer.