Skip to content

Commit 6c53844

Browse files
authored
Merge pull request #575 from DiamondLightSource/Transform_DefaultTransTypeOptionalMacro
Transform default trans type optional macro (DFLTTRANSTYPE)
2 parents 8487422 + 1066eed commit 6c53844

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ADApp/Db/NDTransform.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ record(mbbo, "$(P)$(R)Type")
2424
field(SXVL, "6")
2525
field(SVST, "Rot270Mirror")
2626
field(SVVL, "7")
27+
field(VAL, "$(DFLTTRANSTYPE=0)")
2728
info(autosaveFields, "VAL")
2829
}

docs/ADCore/NDPluginTransform.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describes this class in detail.
2121
``NDPluginTransform.h`` defines the following parameters. It also implements
2222
all of the standard plugin parameters from
2323
:doc:`NDPluginDriver`. The EPICS database
24-
``NDransform.template`` provide access to these parameters, listed in the
24+
``NDTransform.template`` provides access to these parameters, listed in the
2525
following table.
2626

2727
.. |br| raw:: html
@@ -46,7 +46,7 @@ following table.
4646
* - NDPluginTransformType
4747
- asynInt32
4848
- r/w
49-
- Type of transform. Choices are:|br|
49+
- Type of transform. Choices are:|br|
5050
**None**: No transform, the output image is the same as the input image. |br|
5151
**Rot90**: Rotate clockwise 90 degrees. |br|
5252
**Rot180**: Rotate clockwise 180 degrees. |br|
@@ -58,6 +58,7 @@ following table.
5858
the central row in the image. |br|
5959
**Rot270Mirror**: Rot270 followed by Mirror. Equivalent to image transpose followed
6060
by mirror reflection about the central column in the image. |br|
61+
In the template there is an optional macro DFLTTRANSTYPE defaulting to 0 for None for backward compatibility. |br|
6162
- TRANSFORM_TYPE
6263
- $(P)$(R)Type
6364
- mbbo

0 commit comments

Comments
 (0)