Browse Source

Add missing compass cal rotation images

QGC4.4
Don Gagne 9 years ago
parent
commit
27db80f4aa
  1. 3
      qgcresources.qrc
  2. 6
      src/AutoPilotPlugins/APM/APMSensorsComponent.qml
  3. 3
      src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
  4. BIN
      src/AutoPilotPlugins/PX4/Images/Rotate.png
  5. BIN
      src/AutoPilotPlugins/PX4/Images/RotateBack.png
  6. BIN
      src/AutoPilotPlugins/PX4/Images/RotateFront.png
  7. BIN
      src/AutoPilotPlugins/PX4/Images/VehicleRightRotate.png
  8. BIN
      src/AutoPilotPlugins/PX4/Images/VehicleTailDownRotate.png
  9. BIN
      src/AutoPilotPlugins/PX4/Images/VehicleUpsideDownRotate.png
  10. 6
      src/AutoPilotPlugins/PX4/SensorsComponent.qml
  11. 3
      src/AutoPilotPlugins/PX4/SensorsComponentController.cc

3
qgcresources.qrc

@ -33,9 +33,12 @@ @@ -33,9 +33,12 @@
<file alias="VehicleNoseDown.png">src/AutoPilotPlugins/PX4/Images/VehicleNoseDown.png</file>
<file alias="VehicleNoseDownRotate.png">src/AutoPilotPlugins/PX4/Images/VehicleNoseDownRotate.png</file>
<file alias="VehicleRight.png">src/AutoPilotPlugins/PX4/Images/VehicleRight.png</file>
<file alias="VehicleRightRotate.png">src/AutoPilotPlugins/PX4/Images/VehicleRightRotate.png</file>
<file alias="VehicleSummaryIcon.png">src/VehicleSetup/VehicleSummaryIcon.png</file>
<file alias="VehicleTailDown.png">src/AutoPilotPlugins/PX4/Images/VehicleTailDown.png</file>
<file alias="VehicleTailDownRotate.png">src/AutoPilotPlugins/PX4/Images/VehicleTailDownRotate.png</file>
<file alias="VehicleUpsideDown.png">src/AutoPilotPlugins/PX4/Images/VehicleUpsideDown.png</file>
<file alias="VehicleUpsideDownRotate.png">src/AutoPilotPlugins/PX4/Images/VehicleUpsideDownRotate.png</file>
<file alias="attitudeDial.svg">src/FlightMap/Images/attitudeDial.svg</file>
<file alias="attitudeInstrument.svg">src/FlightMap/Images/attitudeInstrument.svg</file>
<file alias="attitudePointer.svg">src/FlightMap/Images/attitudePointer.svg</file>

6
src/AutoPilotPlugins/APM/APMSensorsComponent.qml

@ -364,7 +364,7 @@ QGCView { @@ -364,7 +364,7 @@ QGCView {
calValid: controller.orientationCalUpsideDownSideDone
calInProgress: controller.orientationCalUpsideDownSideInProgress
calInProgressText: controller.orientationCalUpsideDownSideRotate ? "Rotate" : "Hold Still"
imageSource: "qrc:///qmlimages/VehicleUpsideDown.png"
imageSource: controller.orientationCalUpsideDownSideRotate ? "qrc:///qmlimages/VehicleUpsideDownRotate.png" : "qrc:///qmlimages/VehicleUpsideDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalNoseDownSideVisible
@ -378,7 +378,7 @@ QGCView { @@ -378,7 +378,7 @@ QGCView {
calValid: controller.orientationCalTailDownSideDone
calInProgress: controller.orientationCalTailDownSideInProgress
calInProgressText: controller.orientationCalTailDownSideRotate ? "Rotate" : "Hold Still"
imageSource: "qrc:///qmlimages/VehicleTailDown.png"
imageSource: controller.orientationCalTailDownSideRotate ? "qrc:///qmlimages/VehicleTailDownRotate.png" : "qrc:///qmlimages/VehicleTailDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalLeftSideVisible
@ -392,7 +392,7 @@ QGCView { @@ -392,7 +392,7 @@ QGCView {
calValid: controller.orientationCalRightSideDone
calInProgress: controller.orientationCalRightSideInProgress
calInProgressText: controller.orientationCalRightSideRotate ? "Rotate" : "Hold Still"
imageSource: "qrc:///qmlimages/VehicleRight.png"
imageSource: controller.orientationCalRightSideRotate ? "qrc:///qmlimages/VehicleRightRotate.png" : "qrc:///qmlimages/VehicleRight.png"
}
}
}

3
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc

@ -365,6 +365,7 @@ void APMSensorsComponentController::_handleUASTextMessage(int uasId, int compId, @@ -365,6 +365,7 @@ void APMSensorsComponentController::_handleUASTextMessage(int uasId, int compId,
} else if (side == "up") {
_orientationCalUpsideDownSideInProgress = false;
_orientationCalUpsideDownSideDone = true;
_orientationCalUpsideDownSideRotate = false;
} else if (side == "left") {
_orientationCalLeftSideInProgress = false;
_orientationCalLeftSideDone = true;
@ -372,6 +373,7 @@ void APMSensorsComponentController::_handleUASTextMessage(int uasId, int compId, @@ -372,6 +373,7 @@ void APMSensorsComponentController::_handleUASTextMessage(int uasId, int compId,
} else if (side == "right") {
_orientationCalRightSideInProgress = false;
_orientationCalRightSideDone = true;
_orientationCalRightSideRotate = false;
} else if (side == "front") {
_orientationCalNoseDownSideInProgress = false;
_orientationCalNoseDownSideDone = true;
@ -379,6 +381,7 @@ void APMSensorsComponentController::_handleUASTextMessage(int uasId, int compId, @@ -379,6 +381,7 @@ void APMSensorsComponentController::_handleUASTextMessage(int uasId, int compId,
} else if (side == "back") {
_orientationCalTailDownSideInProgress = false;
_orientationCalTailDownSideDone = true;
_orientationCalTailDownSideRotate = false;
}
_orientationCalAreaHelpText->setProperty("text", "Place you vehicle into one of the orientations shown below and hold it still");

BIN
src/AutoPilotPlugins/PX4/Images/Rotate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
src/AutoPilotPlugins/PX4/Images/RotateBack.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
src/AutoPilotPlugins/PX4/Images/RotateFront.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
src/AutoPilotPlugins/PX4/Images/VehicleRightRotate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
src/AutoPilotPlugins/PX4/Images/VehicleTailDownRotate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
src/AutoPilotPlugins/PX4/Images/VehicleUpsideDownRotate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

6
src/AutoPilotPlugins/PX4/SensorsComponent.qml

@ -428,7 +428,7 @@ QGCView { @@ -428,7 +428,7 @@ QGCView {
calValid: controller.orientationCalUpsideDownSideDone
calInProgress: controller.orientationCalUpsideDownSideInProgress
calInProgressText: controller.orientationCalUpsideDownSideRotate ? "Rotate" : "Hold Still"
imageSource: "qrc:///qmlimages/VehicleUpsideDown.png"
imageSource: controller.orientationCalUpsideDownSideRotate ? "qrc:///qmlimages/VehicleUpsideDownRotate.png" : "qrc:///qmlimages/VehicleUpsideDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalNoseDownSideVisible
@ -442,7 +442,7 @@ QGCView { @@ -442,7 +442,7 @@ QGCView {
calValid: controller.orientationCalTailDownSideDone
calInProgress: controller.orientationCalTailDownSideInProgress
calInProgressText: controller.orientationCalTailDownSideRotate ? "Rotate" : "Hold Still"
imageSource: "qrc:///qmlimages/VehicleTailDown.png"
imageSource: controller.orientationCalTailDownSideRotate ? "qrc:///qmlimages/VehicleTailDownRotate.png" : "qrc:///qmlimages/VehicleTailDown.png"
}
VehicleRotationCal {
visible: controller.orientationCalLeftSideVisible
@ -456,7 +456,7 @@ QGCView { @@ -456,7 +456,7 @@ QGCView {
calValid: controller.orientationCalRightSideDone
calInProgress: controller.orientationCalRightSideInProgress
calInProgressText: controller.orientationCalRightSideRotate ? "Rotate" : "Hold Still"
imageSource: "qrc:///qmlimages/VehicleRight.png"
imageSource: controller.orientationCalRightSideRotate ? "qrc:///qmlimages/VehicleRightRotate.png" : "qrc:///qmlimages/VehicleRight.png"
}
}
}

3
src/AutoPilotPlugins/PX4/SensorsComponentController.cc

@ -387,6 +387,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in @@ -387,6 +387,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in
} else if (side == "up") {
_orientationCalUpsideDownSideInProgress = false;
_orientationCalUpsideDownSideDone = true;
_orientationCalUpsideDownSideRotate = false;
} else if (side == "left") {
_orientationCalLeftSideInProgress = false;
_orientationCalLeftSideDone = true;
@ -394,6 +395,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in @@ -394,6 +395,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in
} else if (side == "right") {
_orientationCalRightSideInProgress = false;
_orientationCalRightSideDone = true;
_orientationCalRightSideRotate = false;
} else if (side == "front") {
_orientationCalNoseDownSideInProgress = false;
_orientationCalNoseDownSideDone = true;
@ -401,6 +403,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in @@ -401,6 +403,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in
} else if (side == "back") {
_orientationCalTailDownSideInProgress = false;
_orientationCalTailDownSideDone = true;
_orientationCalTailDownSideRotate = false;
}
_orientationCalAreaHelpText->setProperty("text", "Place you vehicle into one of the orientations shown below and hold it still");

Loading…
Cancel
Save