Skip to content

Failed to get SensorTimestamp from controls on raspberry pi 5 #72

Description

@hannnnn-l

I am trying to get sensor timestamp with the following code:

let timestamp = req.controls().get::<libcamera::controls::SensorTimestamp>().expect("Failed to get sensor timestamp");

This works on PC, while it errors out with a ControlError::NotFound(C::ID) error. Error message:

thread '<unnamed>' panicked at src/input_generator/libcamera.rs:243:26:
Failed to get sensor timestamp: NotFound(32)

This make me thinking of how the number 32 is generated and if raspberry pi's libcamera build have a different index of it.

I would be greatly appreciative for any ideas and directions I can dig in.

Thanks,
Han

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions