ipa: raspberrypi: Add sensor temperature to DeviceStatus
Add an optional sensor_temperature field to the DeviceStatus structure. If a temperature measurement is available for a frame, the value is returned out through the SensorTemperature control in the Request metadata. Additionally, provide the sensor temperature value from the std::ostream &operator<< overload. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
71fb654918
commit
2a321be376
4 changed files with 13 additions and 3 deletions
|
@ -491,6 +491,8 @@ void IPARPi::reportMetadata()
|
|||
libcameraMetadata_.set(controls::AnalogueGain, deviceStatus->analogue_gain);
|
||||
libcameraMetadata_.set(controls::FrameDuration,
|
||||
helper_->Exposure(deviceStatus->frame_length).get<std::micro>());
|
||||
if (deviceStatus->sensor_temperature)
|
||||
libcameraMetadata_.set(controls::SensorTemperature, *deviceStatus->sensor_temperature);
|
||||
}
|
||||
|
||||
AgcStatus *agcStatus = rpiMetadata_.GetLocked<AgcStatus>("agc.status");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue