Changeset 167 in flair-src for trunk/demos/OpticalFlow
- Timestamp:
- Apr 12, 2017, 1:59:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/OpticalFlow/uav/src/DemoOpticalFlow.cpp
r165 r167 178 178 179 179 // /!\ in this demo, the target value is a speed (in m/s). As a consequence the error is the difference between the current speed and the target speed 180 Vector2D error, errorVariation; // in Uav coordinate system180 Vector2Df error, errorVariation; // in Uav coordinate system 181 181 182 182 error.x=opticalFlowRealSpeed->Value(0,0)-opticalFlowReference->Value(0,0); … … 194 194 refAngles.roll=-u_y->Output(); 195 195 196 customReferenceOrientation->SetQuaternionAndAngularRates(refAngles.ToQuaternion(),Vector3D (0,0,0));196 customReferenceOrientation->SetQuaternionAndAngularRates(refAngles.ToQuaternion(),Vector3Df(0,0,0)); 197 197 198 198 return customReferenceOrientation;
Note:
See TracChangeset
for help on using the changeset viewer.