Skip to content

Commit

Permalink
database: ensure frame rate is enabled when limiting it.
Browse files Browse the repository at this point in the history
Some cameras default to automatic frame rate mode when power-cycled.
This makes the acquire period limitation ineffective, as the parameter
is ignored by the camera firmware.

Enforce manual frame rate setting at IOC start-up when limiting frame
rate. Note that the overwritten record already contains `PINI=YES` to
write this to hardware on `iocInit`.

Fixes: d5caf77 ("database: add option to limit camera frame rate.")
  • Loading branch information
henriquesimoes committed Apr 24, 2024
1 parent 227446b commit 94b5c87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CameraApp/Db/limits.db
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
record(bo, "$(P)$(R)FrameRateEnable") {
field(VAL, 1)
}

record(ao, "$(P)$(R)AcquirePeriod") {
field(DRVL, "$(ACQUIRE_PERIOD_DRVL=0)")
field(DRVH, "inf")
Expand Down

0 comments on commit 94b5c87

Please sign in to comment.