@@ -476,20 +476,11 @@ int CameraSensor::initProperties()
rotationTransform_ = Transform::Identity;
}
- /*
- * Adjust property::Rotation as validateTransform() compensates
- * for the mounting rotation. However, as a camera sensor can
- * only compensate rotations by applying H/VFlips, only rotation
- * of 180 degrees are automatically compensated. The other valid
- * rotations (Rot90 and Rot270) require transposition, which the
- * camera sensor cannot perform, so leave them untouched.
- */
- if (propertyValue == 180 && supportFlips_)
- propertyValue = 0;
properties_.set(properties::Rotation, propertyValue);
} else {
LOG(CameraSensor, Warning)
<< "Rotation control not available, default to 0 degrees";
+ properties_.set(properties::Rotation, propertyValue);
rotationTransform_ = Transform::Identity;
}
@@ -29,10 +29,10 @@ controls:
- Rotation:
type: int32_t
description: |
- The camera rotation is expressed as the angular difference in degrees
- between two reference systems, one relative to the camera module, and
- one defined on the external world scene to be captured when projected
- on the image sensor pixel array.
+ The camera physical mounting rotation, expressed as the angular
+ difference in degrees between two reference systems, one relative to the
+ camera module, and one defined on the external world scene to be
+ captured when projected on the image sensor pixel array.
A camera sensor has a 2-dimensional reference system 'Rc' defined by
its pixel array read-out order. The origin is set to the first pixel