From 3b812c5ed8e228237d92183585a89659e333cd51 Mon Sep 17 00:00:00 2001 From: Brandon Lampert <65676272+InspiredBrandon@users.noreply.github.com> Date: Thu, 12 Aug 2021 07:03:11 -0700 Subject: [PATCH] Settings for the Workswell Wiris Security (#9813) * Added settings for the Workswell Wiris Security modified: src/FirmwarePlugin/FirmwarePlugin.cc * Corrected minimum trigger interval based on Workswell customer support modified: src/FirmwarePlugin/FirmwarePlugin.cc --- src/FirmwarePlugin/FirmwarePlugin.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/FirmwarePlugin/FirmwarePlugin.cc b/src/FirmwarePlugin/FirmwarePlugin.cc index 7878dd0..87a3281 100644 --- a/src/FirmwarePlugin/FirmwarePlugin.cc +++ b/src/FirmwarePlugin/FirmwarePlugin.cc @@ -849,7 +849,37 @@ const QVariantList& FirmwarePlugin::cameraList(const Vehicle*) this); // parent _cameraList.append(QVariant::fromValue(metaData)); + metaData = new CameraMetaData( + "Workswell Wiris Security Thermal Camera", + tr("Workswell"), + tr("Wiris Security"), + 13.6, // sensorWidth + 10.2, // sensorHeight + 800, // imageWidth + 600, // imageHeight + 35, // focalLength + true, // true: landscape orientation + false, // true: camera is fixed orientation + 1.8, // minimum trigger interval + "", // SHOULD BE BLANK FOR NEWLY ADDED CAMERAS. Deprecated translation from older builds. + this); // parent + _cameraList.append(QVariant::fromValue(metaData)); + metaData = new CameraMetaData( + "Workswell Wiris Security Visual Camera", + tr("Workswell"), + tr("Wiris Security"), + 4.826, // sensorWidth + 3.556, // sensorHeight + 1920, // imageWidth + 1080, // imageHeight + 4.3, // focalLength + true, // true: landscape orientation + false, // true: camera is fixed orientation + 1.8, // minimum trigger interval + "", // SHOULD BE BLANK FOR NEWLY ADDED CAMERAS. Deprecated translation from older builds. + this); // parent + _cameraList.append(QVariant::fromValue(metaData)); } return _cameraList;