camerad: log request id (#30935)
* camerad: log request id * bump cereal * bump cereal
This commit is contained in:
parent
2a49f94872
commit
91c5c5eca7
2
cereal
2
cereal
|
@ -1 +1 @@
|
|||
Subproject commit e29625c30bb2a4a34ce21134d0e5a91b2d4fa1b1
|
||||
Subproject commit d81d86e7cd83d1eb40314964a4d194231381d557
|
|
@ -136,6 +136,7 @@ void CameraBuf::queue(size_t buf_idx) {
|
|||
|
||||
void fill_frame_data(cereal::FrameData::Builder &framed, const FrameMetadata &frame_data, CameraState *c) {
|
||||
framed.setFrameId(frame_data.frame_id);
|
||||
framed.setRequestId(frame_data.request_id);
|
||||
framed.setTimestampEof(frame_data.timestamp_eof);
|
||||
framed.setTimestampSof(frame_data.timestamp_sof);
|
||||
framed.setIntegLines(frame_data.integ_lines);
|
||||
|
|
|
@ -26,6 +26,7 @@ const bool env_ctrl_exp_from_params = getenv("CTRL_EXP_FROM_PARAMS") != NULL;
|
|||
|
||||
typedef struct FrameMetadata {
|
||||
uint32_t frame_id;
|
||||
uint32_t request_id;
|
||||
|
||||
// Timestamps
|
||||
uint64_t timestamp_sof;
|
||||
|
|
|
@ -766,6 +766,7 @@ void CameraState::handle_camera_event(void *evdat) {
|
|||
|
||||
auto &meta_data = buf.camera_bufs_metadata[buf_idx];
|
||||
meta_data.frame_id = main_id - idx_offset;
|
||||
meta_data.request_id = real_id;
|
||||
meta_data.timestamp_sof = timestamp;
|
||||
exp_lock.lock();
|
||||
meta_data.gain = analog_gain_frac * (1 + dc_gain_weight * (ci->dc_gain_factor-1) / ci->dc_gain_max_weight);
|
||||
|
|
Loading…
Reference in New Issue