Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
67643efd
Commit
67643efd
authored
Jul 08, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start/restart behavior, more of relevant status output
parent
eb2f643e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
23 deletions
+84
-23
camogm.c
src/camogm.c
+78
-22
camogm.h
src/camogm.h
+6
-1
No files found.
src/camogm.c
View file @
67643efd
This diff is collapsed.
Click to expand it.
src/camogm.h
View file @
67643efd
...
...
@@ -35,6 +35,7 @@
#define NUM_NEED_NEMPTY (NUM_WRITER_THREADS + 0) // wake up main thread if there are at least this number of empty pages
#define NUM_FREE_MANY (NUM_WRITER_THREADS + 1) // Set many if get_num_empty() < NUM_FREE_MANY
#define ERRORS_FROM_START 1 ///< Reset errors only when starting recording, not after reading status
//#define NODEBUG
#define CAMOGM_FRAME_NOT_READY 1 ///< frame pointer valid, but not yet acquired
#define CAMOGM_FRAME_INVALID 2 ///< invalid frame pointer
...
...
@@ -172,7 +173,7 @@ enum state_flags {
STATE_STARTING
,
STATE_RUNNING
,
STATE_READING
,
STATE_RESTARTING
,
STATE_RESTARTING
,
// after errors, until started
STATE_CANCEL
};
...
...
@@ -337,6 +338,10 @@ typedef struct {
int
data_segments
;
///< the number of segments in frame
int
buf_overruns
[
SENSOR_PORTS
];
int
buf_min
[
SENSOR_PORTS
];
int
buf_free
[
SENSOR_PORTS
];
///< free buffer size last measured, per port
int
buf_mfree
;
///< free buffer size - minimal for all ports
int
buf_mmin
;
///< minimum of buf_min[port]
int
error_restarts
;
///< number of restarts due to errors;
int
set_frames_skip
;
///< will be copied to frames_skip if stopped or at start
int
frames_skip
;
///< number of frames to skip after the one recorded (for time lapse)
///< if negative - -(interval between frames in seconds)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment