Skip to content

Commit

Permalink
Merge pull request mavlink#1403 from YUNEEC/e10tCalibration
Browse files Browse the repository at this point in the history
Calibrating the E10T camera for its new 4.4mm lens
  • Loading branch information
dogmaphobic authored Feb 26, 2018
2 parents d9ded44 + daa64d3 commit f55c976
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions custom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## DataPilot Release Changelog

### V1.2.70 - Feb 26 2018

* Calibrating the E10T camera for its new 4.4mm lens

### V1.2.69 - Feb 24 2018

* Set camera time using parameter instead of messages. Again, the camera firmware will need to be updated for this to work.
Expand Down
10 changes: 5 additions & 5 deletions custom/res/YuneecFlightDisplayViewVideo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Item {
property double _ar: _arFact ? _arFact.rawValue : QGroundControl.settingsManager.videoSettings.aspectRatio.rawValue
property real _minLabel: ScreenTools.defaultFontPixelWidth * 8
property double _thermalAspect: _camera ? (_camera.isE10T ? 1.25 : 1.33) : 1
property double _thermalHeightFactor: _camera ? (_camera.isE10T ? 0.3955 : 0.9444) : 1
property double _thermalHeightFactor: _camera ? (_camera.isE10T ? 0.8333 : 0.9444) : 1
property bool _celcius: QGroundControl.settingsManager.unitsSettings.temperatureUnits.rawValue === UnitsSettings.TemperatureUnitsCelsius

property real spotSize: 48
Expand Down Expand Up @@ -319,9 +319,9 @@ Item {
Column {
anchors.right: thermalItem.left
anchors.rightMargin: ScreenTools.defaultFontPixelWidth
anchors.top: _camera && _camera.isE10T ? undefined : parent.top
anchors.topMargin: _camera && _camera.isE10T ? undefined : ScreenTools.defaultFontPixelHeight * 6.5
anchors.verticalCenter: _camera && _camera.isE10T ? thermalItem.verticalCenter : undefined
anchors.top: _camera ? undefined : parent.top
anchors.topMargin: _camera ? undefined : ScreenTools.defaultFontPixelHeight * 6.5
anchors.verticalCenter: _camera ? thermalItem.verticalCenter : undefined
spacing: ScreenTools.defaultFontPixelHeight * 0.25
visible: thermalItem.visible && _camera && _camera.irValid && TyphoonHQuickInterface.thermalMode !== TyphoonHQuickInterface.ThermalPIP
Rectangle {
Expand All @@ -340,7 +340,7 @@ Item {
}
Rectangle {
width: ScreenTools.defaultFontPixelWidth * 4
height: _camera && _camera.isE10T ? thermalItem.height : thermalItem.height * 0.5
height: thermalItem.height * 0.5
color: Qt.rgba(0,0,0,0)
border.width: 1
border.color: qgcPal.globalTheme === QGCPalette.Light ? Qt.rgba(0,0,0,0.35) : Qt.rgba(1,1,1,0.35)
Expand Down

0 comments on commit f55c976

Please sign in to comment.