You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/services/camera_def.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ There are cases where an option change requires a parameter to be updated. For e
195
195
196
196
This tells the GCS that when the `CAM_EXPMODE` parameter changes, the `CAM_APERTURE`, `CAM_SHUTTERSPD` and the `CAM_ISO` parameters must be updated (requested from the camera).
197
197
198
-
#### Range Limit
198
+
#### Option Range Limit
199
199
200
200
Suppose your camera has the following ISO options:
201
201
@@ -248,6 +248,34 @@ This indicates to the GCS that when the `CAM_MODE` parameter is set to _Video_,
248
248
249
249
This example also tells the GCS not to display this parameter to the user (`control=“0”`). Camera Mode is a standard parameter defined in the [CAMERA_INFORMATION](../messages/common.md#CAMERA_INFORMATION) message and it’s handled by the GCS in that way. The parameter definition above was created in order to tell the GCS the rules that are applied when changes to the camera mode occur.
250
250
251
+
#### Param Ranges
252
+
253
+
It is also possible to define param ranges without individual options, but by specifiying the minimum, maximum, and optionally a step size:
Note that this approach cannot be used in conjunction with exclusions or option range limits (defined with `parameterrange`).
277
+
Therefore it is recommended for cases where the range of allowed values does not vary with any other camera mode or setting.
278
+
251
279
### Localization
252
280
253
281
The `localization` element is used for defining localized strings for display to users. If found, the GCS will use to replace all `description` and options `name` values found in the file with the strings defined here. Here is an example for German localization (de_DE):
0 commit comments