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.CalibrationAccel:
162 case MAVLink.CalibrationMag:
163 _singleCompassSettingsComponentShowPriority = true
164 postOnboardCompassCalibrationFactory.open()
169 onSetAllCalButtonsEnabled: (enabled) => {
170 buttonColumn.enabled = enabled
173 onCalibrationActiveChanged: {
174 if (controller.calibrationActive) {
175 globals.navigationBlockedReason = qsTr("Complete or cancel the current calibration first")
177 globals.navigationBlockedReason = ""
182 Component.onDestruction: globals.navigationBlockedReason = ""
184 QGCPalette { id: qgcPal; colorGroupEnabled: true }
186 QGCPopupDialogFactory {
187 id: waitForCancelDialogFactory
189 dialogComponent: waitForCancelDialogComponent
193 id: waitForCancelDialogComponent
195 QGCSimpleMessageDialog {
196 title: qsTr("Calibration Cancel")
197 text: qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds.")
203 onWaitingForCancelChanged: {
204 if (!controller.waitingForCancel) {
213 id: singleCompassOnboardResultsComponent
216 anchors.left: parent ? parent.left : undefined
217 anchors.right: parent ? parent.right : undefined
218 spacing: Math.round(ScreenTools.defaultFontPixelHeight / 2)
219 visible: sensorParams.rgCompassAvailable[index] && sensorParams.rgCompassUseFact[index].value
221 property int _index: index
223 property real greenMaxThreshold: 8 * (sensorParams.rgCompassExternal[index] ? 1 : 2)
224 property real yellowMaxThreshold: 15 * (sensorParams.rgCompassExternal[index] ? 1 : 2)
225 property real fitnessRange: 25 * (sensorParams.rgCompassExternal[index] ? 1 : 2)
228 anchors.left: parent.left
229 anchors.right: parent.right
230 height: ScreenTools.defaultFontPixelHeight
237 width: parent.width * (greenMaxThreshold / fitnessRange)
238 height: parent.height
242 width: parent.width * ((yellowMaxThreshold - greenMaxThreshold) / fitnessRange)
243 height: parent.height
247 width: parent.width * ((fitnessRange - yellowMaxThreshold) / fitnessRange)
248 height: parent.height
254 height: fitnessRow.height * 0.66
256 anchors.verticalCenter: fitnessRow.verticalCenter
257 x: (fitnessRow.width * (Math.min(Math.max(controller.rgCompassCalFitness[index], 0.0), fitnessRange) / fitnessRange)) - (width / 2)
260 border.color: "black"
265 anchors.leftMargin: ScreenTools.defaultFontPixelWidth * 2
266 anchors.left: parent.left
267 anchors.right: parent.right
268 sourceComponent: singleCompassSettingsComponent
270 property int index: _index
275 QGCPopupDialogFactory {
276 id: postOnboardCompassCalibrationFactory
278 dialogComponent: postOnboardCompassCalibrationComponent
282 id: postOnboardCompassCalibrationComponent
285 id: postOnboardCompassCalibrationDialog
286 title: qsTr("Calibration complete")
290 width: 40 * ScreenTools.defaultFontPixelWidth
291 spacing: ScreenTools.defaultFontPixelHeight
295 delegate: singleCompassOnboardResultsComponent
299 anchors.left: parent.left
300 anchors.right: parent.right
301 wrapMode: Text.WordWrap
302 text: qsTr("Shown in the indicator bars is the quality of the calibration for each compass.\n\n") +
303 qsTr("- Green indicates a well functioning compass.\n") +
304 qsTr("- Yellow indicates a questionable compass or calibration.\n") +
305 qsTr("- Red indicates a compass which should not be used.\n\n") +
306 qsTr("YOU MUST REBOOT YOUR VEHICLE AFTER EACH CALIBRATION.")
310 text: qsTr("Reboot Vehicle")
312 controller.vehicle.rebootVehicle()
313 postOnboardCompassCalibrationDialog.close()
321 id: postCalibrationComponent
324 id: postCalibrationDialog
325 title: qsTr("Calibration complete")
328 width: 40 * ScreenTools.defaultFontPixelWidth
329 spacing: ScreenTools.defaultFontPixelHeight
332 anchors.left: parent.left
333 anchors.right: parent.right
334 wrapMode: Text.WordWrap
335 text: qsTr("YOU MUST REBOOT YOUR VEHICLE AFTER EACH CALIBRATION.")
339 text: qsTr("Reboot Vehicle")
341 controller.vehicle.rebootVehicle()
342 postCalibrationDialog.close()
349 property bool _singleCompassSettingsComponentShowPriority: true
351 id: singleCompassSettingsComponent
354 spacing: Math.round(ScreenTools.defaultFontPixelHeight / 2)
355 visible: sensorParams.rgCompassAvailable[index]
358 text: compassLabel(index)
361 fact: sensorParams.rgCompassId[index]
365 anchors.margins: ScreenTools.defaultFontPixelWidth * 2
366 anchors.left: parent.left
367 spacing: Math.round(ScreenTools.defaultFontPixelHeight / 4)
370 spacing: ScreenTools.defaultFontPixelWidth
373 id: useCompassCheckBox
374 text: qsTr("Use Compass")
375 fact: sensorParams.rgCompassUseFact[index]
376 visible: sensorParams.rgCompassUseParamAvailable[index] && !sensorParams.rgCompassPrimary[index]
380 model: [ qsTr("Priority 1"), qsTr("Priority 2"), qsTr("Priority 3"), qsTr("Not Set") ]
381 visible: _singleCompassSettingsComponentShowPriority && sensorParams.compassPrioFactsAvailable && useCompassCheckBox.visible && useCompassCheckBox.checked
383 property int _compassIndex: index
385 function selectPriorityfromParams() {
387 let compassId = sensorParams.rgCompassId[_compassIndex].rawValue
388 for (let prioIndex=0; prioIndex<3; prioIndex++) {
389 if (compassId == sensorParams.rgCompassPrio[prioIndex].rawValue) {
390 currentIndex = prioIndex
396 Component.onCompleted: selectPriorityfromParams()
398 onActivated: (index) => {
400 // User cannot select Not Set
401 selectPriorityfromParams()
403 sensorParams.rgCompassPrio[index].rawValue = sensorParams.rgCompassId[_compassIndex].rawValue
410 visible: !_compassAutoRot && sensorParams.rgCompassExternal[index] && sensorParams.rgCompassRotParamAvailable[index]
412 QGCLabel { text: qsTr("Orientation:") }
415 width: rotationColumnWidth
417 fact: sensorParams.rgCompassRotFact[index]
424 QGCPopupDialogFactory {
425 id: orientationsDialogFactory
427 dialogComponent: orientationsDialogComponent
431 id: orientationsDialogComponent
434 function compassMask () {
436 mask |= (0 + (sensorParams.rgCompassPrio[0].rawValue !== 0)) << 0
437 mask |= (0 + (sensorParams.rgCompassPrio[1].rawValue !== 0)) << 1
438 mask |= (0 + (sensorParams.rgCompassPrio[2].rawValue !== 0)) << 2
443 if (_orientationDialogCalType == _calTypeAccel) {
444 controller.calibrateAccel(_doSimpleAccelCal)
445 } else if (_orientationDialogCalType == _calTypeCompass) {
446 if (!northCalibrationCheckBox.checked) {
447 controller.calibrateCompass()
449 let lat = parseFloat(northCalLat.text)
450 let lon = parseFloat(northCalLon.text)
451 if (useMapPositionCheckbox.checked) {
452 lat = _mapPosition.latitude
453 lon = _mapPosition.longitude
455 if (useGcsPositionCheckbox.checked) {
456 lat = _gcsPosition.latitude
457 lon = _gcsPosition.longitude
459 if (isNaN(lat) || isNaN(lon)) {
462 controller.calibrateCompassNorth(lat, lon, compassMask())
468 width: 40 * ScreenTools.defaultFontPixelWidth
469 spacing: ScreenTools.defaultFontPixelHeight
473 wrapMode: Text.WordWrap
474 text: _orientationDialogHelp
478 QGCLabel { text: qsTr("Autopilot Rotation:") }
481 width: rotationColumnWidth
489 visible: _orientationDialogCalType == _calTypeAccel
490 spacing: ScreenTools.defaultFontPixelHeight
494 wrapMode: Text.WordWrap
495 text: qsTr("Simple accelerometer calibration is less precise but allows calibrating without rotating the vehicle. Check this if you have a large/heavy vehicle.")
499 text: "Simple Accelerometer Calibration"
500 onClicked: _doSimpleAccelCal = this.checked
505 model: _orientationsDialogShowCompass ? 3 : 0
506 delegate: singleCompassSettingsComponent
510 id: magneticDeclinationLabel
512 visible: globals.activeVehicle.sub && _orientationsDialogShowCompass
513 text: qsTr("Magnetic Declination")
517 visible: magneticDeclinationLabel.visible
518 anchors.margins: ScreenTools.defaultFontPixelWidth
519 anchors.left: parent.left
520 anchors.right: parent.right
521 spacing: ScreenTools.defaultFontPixelHeight
524 id: manualMagneticDeclinationCheckBox
525 text: qsTr("Manual Magnetic Declination")
526 property Fact autoDecFact: controller.getParameterFact(-1, "COMPASS_AUTODEC")
527 property int manual: 0
528 property int automatic: 1
530 checked: autoDecFact.rawValue === manual
531 onClicked: autoDecFact.value = (checked ? manual : automatic)
535 fact: sensorParams.declinationFact
536 enabled: manualMagneticDeclinationCheckBox.checked
540 Item { height: ScreenTools.defaultFontPixelHeight; width: 10 } // spacer
543 id: northCalibrationLabel
545 visible: _orientationsDialogShowCompass
546 wrapMode: Text.WordWrap
547 text: qsTr("Fast compass calibration given vehicle position and yaw. This ") +
548 qsTr("results in zero diagonal and off-diagonal elements, so is only ") +
549 qsTr("suitable for vehicles where the field is close to spherical. It is ") +
550 qsTr("useful for large vehicles where moving the vehicle to calibrate it ") +
551 qsTr("is difficult. Point the vehicle North before using it.")
555 visible: northCalibrationLabel.visible
556 anchors.margins: ScreenTools.defaultFontPixelWidth
557 anchors.left: parent.left
558 anchors.right: parent.right
559 spacing: ScreenTools.defaultFontPixelHeight
562 id: northCalibrationCheckBox
563 visible: northCalibrationLabel.visible
564 text: qsTr("Fast Calibration")
568 id: northCalibrationManualPosition
570 visible: northCalibrationCheckBox.checked && !globals.activeVehicle.coordinate.isValid
571 wrapMode: Text.WordWrap
572 text: qsTr("Vehicle has no Valid positon, please provide it")
576 visible: northCalibrationManualPosition.visible && _gcsPosition.isValid
577 id: useGcsPositionCheckbox
578 text: qsTr("Use GCS position instead")
579 checked: _gcsPosition.isValid
582 visible: northCalibrationManualPosition.visible && !_gcsPosition.isValid
583 id: useMapPositionCheckbox
584 text: qsTr("Use current map position instead")
589 visible: useMapPositionCheckbox.checked
590 wrapMode: Text.WordWrap
591 text: qsTr(`Lat: ${_mapPosition.latitude.toFixed(4)} Lon: ${_mapPosition.longitude.toFixed(4)}`)
596 visible: !useGcsPositionCheckbox.checked && !useMapPositionCheckbox.checked && northCalibrationCheckBox.checked
598 textColor: isNaN(parseFloat(text)) ? qgcPal.warningText: qgcPal.textFieldText
599 enabled: !useGcsPositionCheckbox.checked
603 visible: !useGcsPositionCheckbox.checked && !useMapPositionCheckbox.checked && northCalibrationCheckBox.checked
605 textColor: isNaN(parseFloat(text)) ? qgcPal.warningText: qgcPal.textFieldText
606 enabled: !useGcsPositionCheckbox.checked
614 QGCPopupDialogFactory {
615 id: compassMotDialogFactory
617 dialogComponent: compassMotDialogComponent
621 id: compassMotDialogComponent
624 title: qsTr("Compass Motor Interference Calibration")
625 buttons: Dialog.Cancel | Dialog.Ok
627 onAccepted: controller.calibrateMotorInterference()
630 width: 40 * ScreenTools.defaultFontPixelWidth
631 spacing: ScreenTools.defaultFontPixelHeight
634 anchors.left: parent.left
635 anchors.right: parent.right
636 wrapMode: Text.WordWrap
637 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. ") +
638 qsTr("CompassMot only works well if you have a battery current monitor because the magnetic interference is linear with current drawn. ") +
639 qsTr("It is technically possible to set-up CompassMot using throttle but this is not recommended.")
643 anchors.left: parent.left
644 anchors.right: parent.right
645 wrapMode: Text.WordWrap
646 text: qsTr("Disconnect your props, flip them over and rotate them one position around the frame. ") +
647 qsTr("In this configuration they should push the copter down into the ground when the throttle is raised.")
651 anchors.left: parent.left
652 anchors.right: parent.right
653 wrapMode: Text.WordWrap
654 text: qsTr("Secure the copter (perhaps with tape) so that it does not move.")
658 anchors.left: parent.left
659 anchors.right: parent.right
660 wrapMode: Text.WordWrap
661 text: qsTr("Turn on your transmitter and keep throttle at zero.")
665 anchors.left: parent.left
666 anchors.right: parent.right
667 wrapMode: Text.WordWrap
668 text: qsTr("Click Ok to start CompassMot calibration.")
676 anchors.left: parent.left
677 anchors.top: parent.top
678 anchors.bottom: parent.bottom
680 contentHeight: nextCancelColumn.y + nextCancelColumn.height + _margins
682 // Calibration button column - Calibratin buttons are kept in a separate column from Next/Cancel buttons
683 // so we can enable/disable them all as a group
687 Layout.alignment: Qt.AlignLeft | Qt.AlignTop
690 objectName: "sensorsSetup_calibrateAccel"
692 text: qsTr("Accelerometer")
693 indicatorGreen: !accelCalNeeded
695 onClicked: function () {
696 showOrientationsDialog(_calTypeAccel);
697 showSimpleAccelCalOption();
702 objectName: "sensorsSetup_calibrateCompass"
704 text: qsTr("Compass")
705 indicatorGreen: !compassCalNeeded
708 if (controller.accelSetupNeeded) {
709 QGroundControl.showMessageDialog(sensorsPage, qsTr("Calibrate Compass"), qsTr("Accelerometer must be calibrated prior to Compass."))
711 showOrientationsDialog(_calTypeCompass)
718 text: _levelHorizonText
720 readonly property string _levelHorizonText: qsTr("Level Horizon")
723 if (controller.accelSetupNeeded) {
724 QGroundControl.showMessageDialog(sensorsPage, _levelHorizonText, qsTr("Accelerometer must be calibrated prior to Level Horizon."))
726 QGroundControl.showMessageDialog(sensorsPage, _levelHorizonText,
727 qsTr("To level the horizon you need to place the vehicle in its level flight position and press Ok."),
728 Dialog.Cancel | Dialog.Ok,
729 function() { controller.levelHorizon() })
737 visible: globals.activeVehicle && (globals.activeVehicle.multiRotor | globals.activeVehicle.rover | globals.activeVehicle.sub)
738 onClicked: QGroundControl.showMessageDialog(sensorsPage, qsTr("Calibrate Gyro"),
739 qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still.\n\nClick Ok to start calibration."),
740 Dialog.Cancel | Dialog.Ok,
741 function() { controller.calibrateGyro() })
746 text: _calibratePressureText
747 onClicked: QGroundControl.showMessageDialog(sensorsPage, _calibratePressureText,
748 qsTr("Pressure calibration will set the %1 to zero at the current pressure reading. %2").arg(_altText).arg(_helpTextFW),
749 Dialog.Cancel | Dialog.Ok,
750 function() { controller.calibratePressure() })
752 readonly property string _altText: globals.activeVehicle.sub ? qsTr("depth") : qsTr("altitude")
753 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.") : ""
754 readonly property string _calibratePressureText: globals.activeVehicle.fixedWing ? qsTr("Baro/Airspeed") : qsTr("Pressure")
759 text: qsTr("CompassMot")
760 visible: globals.activeVehicle ? globals.activeVehicle.supports.motorInterference : false
761 onClicked: compassMotDialogFactory.open()
766 text: qsTr("Sensor Settings")
767 onClicked: showOrientationsDialog(_calTypeSet)
769 } // Column - Cal Buttons
773 anchors.topMargin: buttonColumn.spacing
774 anchors.top: buttonColumn.bottom
775 anchors.left: buttonColumn.left
776 spacing: buttonColumn.spacing
780 objectName: "sensorsSetup_nextButton"
784 onClicked: controller.nextClicked()
789 objectName: "sensorsSetup_cancelButton"
793 onClicked: controller.cancelCalibration()
796 } // QGCFlickable - buttons
798 /// Right column - cal area
800 anchors.leftMargin: _margins
801 anchors.top: parent.top
802 anchors.bottom: parent.bottom
803 anchors.left: buttonFlickable.right
804 anchors.right: parent.right
808 objectName: "sensorsSetup_progressBar"
809 anchors.left: parent.left
810 anchors.right: parent.right
813 Item { height: ScreenTools.defaultFontPixelHeight; width: 10 } // spacer
818 height: parent.height - y
824 text: statusTextAreaDefaultText
826 background: Rectangle { color: qgcPal.windowShade }
830 id: orientationCalArea
832 visible: controller.showOrientationCalArea
833 color: qgcPal.windowShade
836 id: orientationCalAreaHelpText
837 anchors.margins: ScreenTools.defaultFontPixelWidth
838 anchors.top: orientationCalArea.top
839 anchors.left: orientationCalArea.left
841 wrapMode: Text.WordWrap
842 font.pointSize: ScreenTools.mediumFontPointSize
846 anchors.topMargin: ScreenTools.defaultFontPixelWidth
847 anchors.top: orientationCalAreaHelpText.bottom
848 anchors.bottom: parent.bottom
849 anchors.left: parent.left
850 anchors.right: parent.right
851 spacing: ScreenTools.defaultFontPixelWidth
853 property real indicatorWidth: (width / 3) - (spacing * 2)
854 property real indicatorHeight: (height / 2) - spacing
857 objectName: "sensorsCal_downSide"
858 width: parent.indicatorWidth
859 height: parent.indicatorHeight
860 visible: controller.orientationCalDownSideVisible
861 calState: sideCalState(controller.orientationCalDownSideDone, controller.orientationCalDownSideInProgress)
862 calInProgressText: controller.orientationCalDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
863 imageSource: "qrc:///qmlimages/VehicleDown.png"
866 objectName: "sensorsCal_leftSide"
867 width: parent.indicatorWidth
868 height: parent.indicatorHeight
869 visible: controller.orientationCalLeftSideVisible
870 calState: sideCalState(controller.orientationCalLeftSideDone, controller.orientationCalLeftSideInProgress)
871 calInProgressText: controller.orientationCalLeftSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
872 imageSource: "qrc:///qmlimages/VehicleLeft.png"
875 objectName: "sensorsCal_rightSide"
876 width: parent.indicatorWidth
877 height: parent.indicatorHeight
878 visible: controller.orientationCalRightSideVisible
879 calState: sideCalState(controller.orientationCalRightSideDone, controller.orientationCalRightSideInProgress)
880 calInProgressText: controller.orientationCalRightSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
881 imageSource: "qrc:///qmlimages/VehicleRight.png"
884 objectName: "sensorsCal_noseDownSide"
885 width: parent.indicatorWidth
886 height: parent.indicatorHeight
887 visible: controller.orientationCalNoseDownSideVisible
888 calState: sideCalState(controller.orientationCalNoseDownSideDone, controller.orientationCalNoseDownSideInProgress)
889 calInProgressText: controller.orientationCalNoseDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
890 imageSource: "qrc:///qmlimages/VehicleNoseDown.png"
893 objectName: "sensorsCal_tailDownSide"
894 width: parent.indicatorWidth
895 height: parent.indicatorHeight
896 visible: controller.orientationCalTailDownSideVisible
897 calState: sideCalState(controller.orientationCalTailDownSideDone, controller.orientationCalTailDownSideInProgress)
898 calInProgressText: controller.orientationCalTailDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
899 imageSource: "qrc:///qmlimages/VehicleTailDown.png"
902 objectName: "sensorsCal_upsideDownSide"
903 width: parent.indicatorWidth
904 height: parent.indicatorHeight
905 visible: controller.orientationCalUpsideDownSideVisible
906 calState: sideCalState(controller.orientationCalUpsideDownSideDone, controller.orientationCalUpsideDownSideInProgress)
907 calInProgressText: controller.orientationCalUpsideDownSideRotate ? qsTr("Rotate") : qsTr("Hold Still")
908 imageSource: "qrc:///qmlimages/VehicleUpsideDown.png"
912 } // Item - Cal display area
913 } // Column - cal display
915 } // Component - sensorsPageComponent