7import QGroundControl.FactControls
8import QGroundControl.Controls
12 pageComponent: sensorsPageComponent
15 id: sensorsPageComponent
19 height: availableHeight
21 // Help text which is shown both in the status text area prior to pressing a cal button and in the
22 // pre-calibration dialog.
24 readonly property string orientationHelpSet: qsTr("If mounted in the direction of flight, select None.")
25 readonly property string orientationHelpCal: qsTr("Before calibrating make sure rotation settings are correct. ") + orientationHelpSet
26 readonly property string compassRotationText: qsTr("If the compass or GPS module is mounted in flight direction, leave the default value (None)")
28 readonly property string compassHelp: qsTr("For Compass calibration you will need to rotate your vehicle through a number of positions.")
29 readonly property string gyroHelp: qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.")
30 readonly property string accelHelp: qsTr("For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds.")
31 readonly property string levelHelp: qsTr("To level the horizon you need to place the vehicle in its level flight position and press OK.")
33 readonly property string statusTextAreaDefaultText: qsTr("Start the individual calibration steps by clicking one of the buttons to the left.")
35 // Used to pass help text to the preCalibrationDialog dialog
36 property string preCalibrationDialogHelp
38 property string _postCalibrationDialogText
39 property var _postCalibrationDialogParams
41 readonly property string _badCompassCalText: qsTr("The calibration for Compass %1 appears to be poor. ") +
42 qsTr("Check the compass position within your vehicle and re-do the calibration.")
44 readonly property int sideBarH1PointSize: ScreenTools.mediumFontPointSize
45 readonly property int mainTextH1PointSize: ScreenTools.mediumFontPointSize // Seems to be unused
47 readonly property int rotationColumnWidth: 250
49 property Fact noFact: Fact { }
51 property bool accelCalNeeded: controller.accelSetupNeeded
52 property bool compassCalNeeded: controller.compassSetupNeeded
54 property Fact boardRot: controller.getParameterFact(-1, "AHRS_ORIENTATION")
56 readonly property int _calTypeCompass: 1 ///< Calibrate compass
57 readonly property int _calTypeAccel: 2 ///< Calibrate accel
58 readonly property int _calTypeSet: 3 ///< Set orientations only
59 readonly property int _buttonWidth: ScreenTools.defaultFontPixelWidth * 15
61 property bool _orientationsDialogShowCompass: true
62 property string _orientationDialogHelp: orientationHelpSet
63 property int _orientationDialogCalType
64 property real _margins: ScreenTools.defaultFontPixelHeight / 2
65 property bool _compassAutoRotAvailable: controller.parameterExists(-1, "COMPASS_AUTO_ROT")
66 property Fact _compassAutoRotFact: controller.getParameterFact(-1, "COMPASS_AUTO_ROT", false /* reportMissing */)
67 property bool _compassAutoRot: _compassAutoRotAvailable ? _compassAutoRotFact.rawValue == 2 : false
68 property bool _showSimpleAccelCalOption: false
69 property bool _doSimpleAccelCal: false
70 property var _gcsPosition: QGroundControl.qgcPositionManger.gcsPosition
71 property var _mapPosition: QGroundControl.flightMapPosition
73 function showOrientationsDialog(calType) {
75 let dialogButtons = Dialog.Ok
76 _showSimpleAccelCalOption = false
78 _orientationDialogCalType = calType
81 _orientationsDialogShowCompass = true
82 _orientationDialogHelp = orientationHelpCal
83 dialogTitle = qsTr("Calibrate Compass")
84 dialogButtons |= Dialog.Cancel
87 _orientationsDialogShowCompass = false
88 _orientationDialogHelp = orientationHelpCal
89 dialogTitle = qsTr("Calibrate Accelerometer")
90 dialogButtons |= Dialog.Cancel
93 _orientationsDialogShowCompass = true
94 _orientationDialogHelp = orientationHelpSet
95 dialogTitle = qsTr("Sensor Settings")
99 orientationsDialogFactory.open({ title: dialogTitle, buttons: dialogButtons })
102 function showSimpleAccelCalOption() {
103 _showSimpleAccelCalOption = true
106 // Maps the APM controller per-side done/inProgress bools to a VehicleRotationCal.CalState
107 function sideCalState(done, inProgress) {
109 return VehicleRotationCal.CalState.InProgress
111 return done ? VehicleRotationCal.CalState.Completed : VehicleRotationCal.CalState.Incomplete
114 function compassLabel(index) {
115 let label = qsTr("Compass %1 ").arg(index+1)
116 let addOpenParan = true
118 if (sensorParams.compassPrimaryFactAvailable) {
119 label += sensorParams.rgCompassPrimary[index] ? qsTr("(primary") : qsTr("(secondary")
123 if (sensorParams.rgCompassExternalParamAvailable[index]) {
130 label += sensorParams.rgCompassExternal[index] ? qsTr("external") : qsTr("internal")
138 factPanelController: controller
141 APMSensorsComponentController {
143 statusLog: statusTextArea
144 progressBar: progressBar
145 nextButton: nextButton
146 cancelButton: cancelButton
147 orientationCalAreaHelpText: orientationCalAreaHelpText
149 property var rgCompassCalFitness: [ controller.compass1CalFitness, controller.compass2CalFitness, controller.compass3CalFitness ]
151 onResetStatusTextArea: statusLog.text = statusTextAreaDefaultText
153 onWaitingForCancelChanged: {
154 if (controller.waitingForCancel) {
155 waitForCancelDialogFactory.open()
159 onCalibrationComplete: (calType) => {
161 case MAVLink.CalibrationMag:
162 _singleCompassSettingsComponentShowPriority = true
163 postOnboardCompassCalibrationFactory.open()
165 case MAVLink.CalibrationAccel:
166 postCalibrationFactory.open()
171 onSetAllCalButtonsEnabled: (enabled) => {
172 buttonColumn.enabled = enabled
175 onCalibrationActiveChanged: {
176 if (controller.calibrationActive) {
177 globals.navigationBlockedReason = qsTr("Complete or cancel the current calibration first")
179 globals.navigationBlockedReason = ""
184 Component.onDestruction: globals.navigationBlockedReason = ""
186 QGCPalette { id: qgcPal; colorGroupEnabled: true }
188 QGCPopupDialogFactory {
189 id: waitForCancelDialogFactory
191 dialogComponent: waitForCancelDialogComponent
195 id: waitForCancelDialogComponent
197 QGCSimpleMessageDialog {
198 title: qsTr("Calibration Cancel")
199 text: qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds.")
205 onWaitingForCancelChanged: {
206 if (!controller.waitingForCancel) {
215 id: singleCompassOnboardResultsComponent
218 anchors.left: parent ? parent.left : undefined
219 anchors.right: parent ? parent.right : undefined
220 spacing: Math.round(ScreenTools.defaultFontPixelHeight / 2)
221 visible: sensorParams.rgCompassAvailable[index] && sensorParams.rgCompassUseFact[index].value
223 property int _index: index
225 property real greenMaxThreshold: 8 * (sensorParams.rgCompassExternal[index] ? 1 : 2)
226 property real yellowMaxThreshold: 15 * (sensorParams.rgCompassExternal[index] ? 1 : 2)
227 property real fitnessRange: 25 * (sensorParams.rgCompassExternal[index] ? 1 : 2)
230 anchors.left: parent.left
231 anchors.right: parent.right
232 height: ScreenTools.defaultFontPixelHeight
239 width: parent.width * (greenMaxThreshold / fitnessRange)
240 height: parent.height
244 width: parent.width * ((yellowMaxThreshold - greenMaxThreshold) / fitnessRange)
245 height: parent.height
249 width: parent.width * ((fitnessRange - yellowMaxThreshold) / fitnessRange)
250 height: parent.height
256 height: fitnessRow.height * 0.66
258 anchors.verticalCenter: fitnessRow.verticalCenter
259 x: (fitnessRow.width * (Math.min(Math.max(controller.rgCompassCalFitness[index], 0.0), fitnessRange) / fitnessRange)) - (width / 2)
262 border.color: "black"
267 anchors.leftMargin: ScreenTools.defaultFontPixelWidth * 2
268 anchors.left: parent.left
269 anchors.right: parent.right
270 sourceComponent: singleCompassSettingsComponent
272 property int index: _index
277 QGCPopupDialogFactory {
278 id: postOnboardCompassCalibrationFactory
280 dialogComponent: postOnboardCompassCalibrationComponent
284 id: postOnboardCompassCalibrationComponent
287 id: postOnboardCompassCalibrationDialog
288 title: qsTr("Calibration complete")
292 objectName: "postOnboardCompassCalibrationDialog"
293 width: 40 * ScreenTools.defaultFontPixelWidth
294 spacing: ScreenTools.defaultFontPixelHeight
298 delegate: singleCompassOnboardResultsComponent
302 anchors.left: parent.left
303 anchors.right: parent.right
304 wrapMode: Text.WordWrap
305 text: qsTr("Shown in the indicator bars is the quality of the calibration for each compass.\n\n") +
306 qsTr("- Green indicates a well functioning compass.\n") +
307 qsTr("- Yellow indicates a questionable compass or calibration.\n") +
308 qsTr("- Red indicates a compass which should not be used.\n\n") +
309 qsTr("YOU MUST REBOOT YOUR VEHICLE AFTER EACH CALIBRATION.")
313 text: qsTr("Reboot Vehicle")
315 controller.vehicle.rebootVehicle()
316 postOnboardCompassCalibrationDialog.close()
323 QGCPopupDialogFactory {
324 id: postCalibrationFactory
326 dialogComponent: postCalibrationComponent
330 id: postCalibrationComponent
333 id: postCalibrationDialog
334 title: qsTr("Calibration complete")
337 objectName: "postCalibrationDialog"
338 width: 40 * ScreenTools.defaultFontPixelWidth
339 spacing: ScreenTools.defaultFontPixelHeight
342 anchors.left: parent.left
343 anchors.right: parent.right
344 wrapMode: Text.WordWrap
345 text: qsTr("YOU MUST REBOOT YOUR VEHICLE AFTER EACH CALIBRATION.")
349 text: qsTr("Reboot Vehicle")
351 controller.vehicle.rebootVehicle()
352 postCalibrationDialog.close()
359 property bool _singleCompassSettingsComponentShowPriority: true
361 id: singleCompassSettingsComponent
364 spacing: Math.round(ScreenTools.defaultFontPixelHeight / 2)
365 visible: sensorParams.rgCompassAvailable[index]
368 text: compassLabel(index)
371 fact: sensorParams.rgCompassId[index]
375 anchors.margins: ScreenTools.defaultFontPixelWidth * 2
376 anchors.left: parent.left
377 spacing: Math.round(ScreenTools.defaultFontPixelHeight / 4)
380 spacing: ScreenTools.defaultFontPixelWidth
383 id: useCompassCheckBox
384 text: qsTr("Use Compass")
385 fact: sensorParams.rgCompassUseFact[index]
386 visible: sensorParams.rgCompassUseParamAvailable[index] && !sensorParams.rgCompassPrimary[index]
390 model: [ qsTr("Priority 1"), qsTr("Priority 2"), qsTr("Priority 3"), qsTr("Not Set") ]
391 visible: _singleCompassSettingsComponentShowPriority && sensorParams.compassPrioFactsAvailable && useCompassCheckBox.visible && useCompassCheckBox.checked
393 property int _compassIndex: index
395 function selectPriorityfromParams() {
397 let compassId = sensorParams.rgCompassId[_compassIndex].rawValue
398 for (let prioIndex=0; prioIndex<3; prioIndex++) {
399 if (compassId == sensorParams.rgCompassPrio[prioIndex].rawValue) {
400 currentIndex = prioIndex
406 Component.onCompleted: selectPriorityfromParams()
408 onActivated: (index) => {
410 // User cannot select Not Set
411 selectPriorityfromParams()
413 sensorParams.rgCompassPrio[index].rawValue = sensorParams.rgCompassId[_compassIndex].rawValue
420 visible: !_compassAutoRot && sensorParams.rgCompassExternal[index] && sensorParams.rgCompassRotParamAvailable[index]
422 QGCLabel { text: qsTr("Orientation:") }
425 width: rotationColumnWidth
427 fact: sensorParams.rgCompassRotFact[index]
434 QGCPopupDialogFactory {
435 id: orientationsDialogFactory
437 dialogComponent: orientationsDialogComponent
441 id: orientationsDialogComponent
444 function compassMask () {
446 mask |= (0 + (sensorParams.rgCompassPrio[0].rawValue !== 0)) << 0
447 mask |= (0 + (sensorParams.rgCompassPrio[1].rawValue !== 0)) << 1
448 mask |= (0 + (sensorParams.rgCompassPrio[2].rawValue !== 0)) << 2
453 if (_orientationDialogCalType == _calTypeAccel) {
454 controller.calibrateAccel(_doSimpleAccelCal)
455 } else if (_orientationDialogCalType == _calTypeCompass) {
456 if (!northCalibrationCheckBox.checked) {
457 controller.calibrateCompass()
459 let lat = parseFloat(northCalLat.text)
460 let lon = parseFloat(northCalLon.text)
461 if (useMapPositionCheckbox.checked) {
462 lat = _mapPosition.latitude
463 lon = _mapPosition.longitude
465 if (useGcsPositionCheckbox.checked) {
466 lat = _gcsPosition.latitude
467 lon = _gcsPosition.longitude
469 if (isNaN(lat) || isNaN(lon)) {
472 controller.calibrateCompassNorth(lat, lon, compassMask())
478 width: 40 * ScreenTools.defaultFontPixelWidth
479 spacing: ScreenTools.defaultFontPixelHeight
483 wrapMode: Text.WordWrap
484 text: _orientationDialogHelp
488 QGCLabel { text: qsTr("Autopilot Rotation:") }
491 width: rotationColumnWidth
499 visible: _orientationDialogCalType == _calTypeAccel
500 spacing: ScreenTools.defaultFontPixelHeight
504 wrapMode: Text.WordWrap
505 text: qsTr("Simple accelerometer calibration is less precise but allows calibrating without rotating the vehicle. Check this if you have a large/heavy vehicle.")
509 text: "Simple Accelerometer Calibration"
510 onClicked: _doSimpleAccelCal = this.checked
515 model: _orientationsDialogShowCompass ? 3 : 0
516 delegate: singleCompassSettingsComponent
520 id: magneticDeclinationLabel
522 visible: globals.activeVehicle.sub && _orientationsDialogShowCompass
523 text: qsTr("Magnetic Declination")
527 visible: magneticDeclinationLabel.visible
528 anchors.margins: ScreenTools.defaultFontPixelWidth
529 anchors.left: parent.left
530 anchors.right: parent.right
531 spacing: ScreenTools.defaultFontPixelHeight
534 id: manualMagneticDeclinationCheckBox
535 text: qsTr("Manual Magnetic Declination")
536 property Fact autoDecFact: controller.getParameterFact(-1, "COMPASS_AUTODEC")
537 property int manual: 0
538 property int automatic: 1
540 checked: autoDecFact.rawValue === manual
541 onClicked: autoDecFact.value = (checked ? manual : automatic)
545 fact: sensorParams.declinationFact
546 enabled: manualMagneticDeclinationCheckBox.checked
550 Item { height: ScreenTools.defaultFontPixelHeight; width: 10 } // spacer
553 id: northCalibrationLabel
555 visible: _orientationsDialogShowCompass
556 wrapMode: Text.WordWrap
557 text: qsTr("Fast compass calibration given vehicle position and yaw. This ") +
558 qsTr("results in zero diagonal and off-diagonal elements, so is only ") +
559 qsTr("suitable for vehicles where the field is close to spherical. It is ") +
560 qsTr("useful for large vehicles where moving the vehicle to calibrate it ") +
561 qsTr("is difficult. Point the vehicle North before using it.")
565 visible: northCalibrationLabel.visible
566 anchors.margins: ScreenTools.defaultFontPixelWidth
567 anchors.left: parent.left
568 anchors.right: parent.right
569 spacing: ScreenTools.defaultFontPixelHeight
572 id: northCalibrationCheckBox
573 visible: northCalibrationLabel.visible
574 text: qsTr("Fast Calibration")
578 id: northCalibrationManualPosition
580 visible: northCalibrationCheckBox.checked && !globals.activeVehicle.coordinate.isValid
581 wrapMode: Text.WordWrap
582 text: qsTr("Vehicle has no Valid positon, please provide it")
586 visible: northCalibrationManualPosition.visible && _gcsPosition.isValid
587 id: useGcsPositionCheckbox
588 text: qsTr("Use GCS position instead")
589 checked: _gcsPosition.isValid
592 visible: northCalibrationManualPosition.visible && !_gcsPosition.isValid
593 id: useMapPositionCheckbox
594 text: qsTr("Use current map position instead")
599 visible: useMapPositionCheckbox.checked
600 wrapMode: Text.WordWrap
601 text: qsTr(`Lat: ${_mapPosition.latitude.toFixed(4)} Lon: ${_mapPosition.longitude.toFixed(4)}`)
606 visible: !useGcsPositionCheckbox.checked && !useMapPositionCheckbox.checked && northCalibrationCheckBox.checked
608 textColor: isNaN(parseFloat(text)) ? qgcPal.warningText: qgcPal.textFieldText
609 enabled: !useGcsPositionCheckbox.checked
613 visible: !useGcsPositionCheckbox.checked && !useMapPositionCheckbox.checked && northCalibrationCheckBox.checked
615 textColor: isNaN(parseFloat(text)) ? qgcPal.warningText: qgcPal.textFieldText
616 enabled: !useGcsPositionCheckbox.checked
624 QGCPopupDialogFactory {
625 id: compassMotDialogFactory
627 dialogComponent: compassMotDialogComponent
631 id: compassMotDialogComponent
634 title: qsTr("Compass Motor Interference Calibration")
635 buttons: Dialog.Cancel | Dialog.Ok
637 onAccepted: controller.calibrateMotorInterference()
640 width: 40 * ScreenTools.defaultFontPixelWidth
641 spacing: ScreenTools.defaultFontPixelHeight
644 anchors.left: parent.left
645 anchors.right: parent.right
646 wrapMode: Text.WordWrap
647 text: qsTr("This is recommended for vehicles that have only an internal compass and on vehicles where there is significant interference on the compass from the motors, power wires, etc. ") +
648 qsTr("CompassMot only works well if you have a battery current monitor because the magnetic interference is linear with current drawn. ") +
649 qsTr("It is technically possible to set-up CompassMot using throttle but this is not recommended.")
653 anchors.left: parent.left
654 anchors.right: parent.right
655 wrapMode: Text.WordWrap
656 text: qsTr("Disconnect your props, flip them over and rotate them one position around the frame. ") +
657 qsTr("In this configuration they should push the copter down into the ground when the throttle is raised.")
661 anchors.left: parent.left
662 anchors.right: parent.right
663 wrapMode: Text.WordWrap
664 text: qsTr("Secure the copter (perhaps with tape) so that it does not move.")
668 anchors.left: parent.left
669 anchors.right: parent.right
670 wrapMode: Text.WordWrap
671 text: qsTr("Turn on your transmitter and keep throttle at zero.")
675 anchors.left: parent.left
676 anchors.right: parent.right
677 wrapMode: Text.WordWrap
678 text: qsTr("Click Ok to start CompassMot calibration.")
686 anchors.left: parent.left
687 anchors.top: parent.top
688 anchors.bottom: parent.bottom
690 contentHeight: nextCancelColumn.y + nextCancelColumn.height + _margins
692 // Calibration button column - Calibratin buttons are kept in a separate column from Next/Cancel buttons
693 // so we can enable/disable them all as a group
697 Layout.alignment: Qt.AlignLeft | Qt.AlignTop
700 objectName: "sensorsSetup_calibrateAccel"
702 text: qsTr("Accelerometer")
703 indicatorGreen: !accelCalNeeded
705 onClicked: function () {
706 showOrientationsDialog(_calTypeAccel);
707 showSimpleAccelCalOption();
712 objectName: "sensorsSetup_calibrateCompass"
714 text: qsTr("Compass")
715 indicatorGreen: !compassCalNeeded
718 if (controller.accelSetupNeeded) {
719 QGroundControl.showMessageDialog(sensorsPage, qsTr("Calibrate Compass"), qsTr("Accelerometer must be calibrated prior to Compass."))
721 showOrientationsDialog(_calTypeCompass)
728 text: _levelHorizonText
730 readonly property string _levelHorizonText: qsTr("Level Horizon")
733 if (controller.accelSetupNeeded) {
734 QGroundControl.showMessageDialog(sensorsPage, _levelHorizonText, qsTr("Accelerometer must be calibrated prior to Level Horizon."))
736 QGroundControl.showMessageDialog(sensorsPage, _levelHorizonText,
737 qsTr("To level the horizon you need to place the vehicle in its level flight position and press Ok."),
738 Dialog.Cancel | Dialog.Ok,
739 function() { controller.levelHorizon() })
747 visible: globals.activeVehicle && (globals.activeVehicle.multiRotor | globals.activeVehicle.rover | globals.activeVehicle.sub)
748 onClicked: QGroundControl.showMessageDialog(sensorsPage, qsTr("Calibrate Gyro"),
749 qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.\n\nClick Ok to start calibration."),
750 Dialog.Cancel | Dialog.Ok,
751 function() { controller.calibrateGyro() })
756 text: _calibratePressureText
757 onClicked: QGroundControl.showMessageDialog(sensorsPage, _calibratePressureText,
758 qsTr("Pressure calibration will set the %1 to zero at the current pressure reading. %2").arg(_altText).arg(_helpTextFW),
759 Dialog.Cancel | Dialog.Ok,
760 function() { controller.calibratePressure() })
762 readonly property string _altText: globals.activeVehicle.sub ? qsTr("depth") : qsTr("altitude")
763 readonly property string _helpTextFW: globals.activeVehicle.fixedWing ? qsTr("To calibrate the airspeed sensor shield it from the wind. Do not touch the sensor or obstruct any holes during the calibration.") : ""
764 readonly property string _calibratePressureText: globals.activeVehicle.fixedWing ? qsTr("Baro/Airspeed") : qsTr("Pressure")
769 text: qsTr("CompassMot")
770 visible: globals.activeVehicle ? globals.activeVehicle.supports.motorInterference : false
771 onClicked: compassMotDialogFactory.open()
776 text: qsTr("Sensor Settings")
777 onClicked: showOrientationsDialog(_calTypeSet)
779 } // Column - Cal Buttons
783 anchors.topMargin: buttonColumn.spacing
784 anchors.top: buttonColumn.bottom
785 anchors.left: buttonColumn.left
786 spacing: buttonColumn.spacing
790 objectName: "sensorsSetup_nextButton"
794 onClicked: controller.nextClicked()
799 objectName: "sensorsSetup_cancelButton"
803 onClicked: controller.cancelCalibration()
806 } // QGCFlickable - buttons
808 /// Right column - cal area
810 anchors.leftMargin: _margins
811 anchors.top: parent.top
812 anchors.bottom: parent.bottom
813 anchors.left: buttonFlickable.right
814 anchors.right: parent.right
818 objectName: "sensorsSetup_progressBar"
819 anchors.left: parent.left
820 anchors.right: parent.right
823 Item { height: ScreenTools.defaultFontPixelHeight; width: 10 } // spacer
828 height: parent.height - y
834 text: statusTextAreaDefaultText
836 background: Rectangle { color: qgcPal.windowShade }
840 id: orientationCalArea
842 visible: controller.showOrientationCalArea
843 color: qgcPal.windowShade
846 id: orientationCalAreaHelpText
847 anchors.margins: ScreenTools.defaultFontPixelWidth
848 anchors.top: orientationCalArea.top
849 anchors.left: orientationCalArea.left
851 wrapMode: Text.WordWrap
852 font.pointSize: ScreenTools.mediumFontPointSize
856 anchors.topMargin: ScreenTools.defaultFontPixelWidth
857 anchors.top: orientationCalAreaHelpText.bottom
858 anchors.bottom: parent.bottom
859 anchors.left: parent.left
860 anchors.right: parent.right
861 spacing: ScreenTools.defaultFontPixelWidth
863 property real indicatorWidth: (width / 3) - (spacing * 2)
864 property real indicatorHeight: (height / 2) - spacing
867 objectName: "sensorsCal_downSide"
868 width: parent.indicatorWidth
869 height: parent.indicatorHeight
870 visible: controller.orientationCalDownSideVisible
871 calState: sideCalState(controller.orientationCalDownSideDone, controller.orientationCalDownSideInProgress)
872 calInProgressText: controller.orientationCalDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
873 imageSource: "qrc:///qmlimages/VehicleDown.png"
876 objectName: "sensorsCal_leftSide"
877 width: parent.indicatorWidth
878 height: parent.indicatorHeight
879 visible: controller.orientationCalLeftSideVisible
880 calState: sideCalState(controller.orientationCalLeftSideDone, controller.orientationCalLeftSideInProgress)
881 calInProgressText: controller.orientationCalLeftSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
882 imageSource: "qrc:///qmlimages/VehicleLeft.png"
885 objectName: "sensorsCal_rightSide"
886 width: parent.indicatorWidth
887 height: parent.indicatorHeight
888 visible: controller.orientationCalRightSideVisible
889 calState: sideCalState(controller.orientationCalRightSideDone, controller.orientationCalRightSideInProgress)
890 calInProgressText: controller.orientationCalRightSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
891 imageSource: "qrc:///qmlimages/VehicleRight.png"
894 objectName: "sensorsCal_noseDownSide"
895 width: parent.indicatorWidth
896 height: parent.indicatorHeight
897 visible: controller.orientationCalNoseDownSideVisible
898 calState: sideCalState(controller.orientationCalNoseDownSideDone, controller.orientationCalNoseDownSideInProgress)
899 calInProgressText: controller.orientationCalNoseDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
900 imageSource: "qrc:///qmlimages/VehicleNoseDown.png"
903 objectName: "sensorsCal_tailDownSide"
904 width: parent.indicatorWidth
905 height: parent.indicatorHeight
906 visible: controller.orientationCalTailDownSideVisible
907 calState: sideCalState(controller.orientationCalTailDownSideDone, controller.orientationCalTailDownSideInProgress)
908 calInProgressText: controller.orientationCalTailDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
909 imageSource: "qrc:///qmlimages/VehicleTailDown.png"
912 objectName: "sensorsCal_upsideDownSide"
913 width: parent.indicatorWidth
914 height: parent.indicatorHeight
915 visible: controller.orientationCalUpsideDownSideVisible
916 calState: sideCalState(controller.orientationCalUpsideDownSideDone, controller.orientationCalUpsideDownSideInProgress)
917 calInProgressText: controller.orientationCalUpsideDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
918 imageSource: "qrc:///qmlimages/VehicleUpsideDown.png"
922 } // Item - Cal display area
923 } // Column - cal display
925 } // Component - sensorsPageComponent