Browse Source

Merge pull request #5312 from DonLakeFlyer/Fixes

Fixes
QGC4.4
Don Gagne 8 years ago committed by GitHub
parent
commit
dca3aa5bcb
  1. 3
      src/AutoPilotPlugins/APM/APMSensorsComponent.qml
  2. 2
      src/AutoPilotPlugins/PX4/SensorsComponent.qml
  3. 4
      src/PlanView/SurveyItemEditor.qml
  4. 7
      src/comm/QGCXPlaneLink.cc

3
src/AutoPilotPlugins/APM/APMSensorsComponent.qml

@ -45,7 +45,6 @@ SetupPage { @@ -45,7 +45,6 @@ SetupPage {
readonly property string gyroHelp: "For Gyroscope calibration you will need to place your vehicle on a surface and leave it still."
readonly property string accelHelp: "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."
readonly property string levelHelp: "To level the horizon you need to place the vehicle in its level flight position and press OK."
readonly property string airspeedHelp: "For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor."
readonly property string statusTextAreaDefaultText: "Start the individual calibration steps by clicking one of the buttons to the left."
@ -466,7 +465,7 @@ SetupPage { @@ -466,7 +465,7 @@ SetupPage {
readonly property string _altText: _activeVehicle.sub ? qsTr("depth") : qsTr("altitude")
readonly property string _helpText: qsTr("Pressure calibration will set the %1 to zero at the current pressure reading. %2").arg(_altText).arg(_helpTextFW)
readonly property string _helpTextFW: _activeVehicle.fixedWing ? qsTr("Cover airspeed sensor for calibration.") : ""
readonly property string _helpTextFW: _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.") : ""
}
} // QGCViewDialog
} // Component - calibratePressureDialogComponent

2
src/AutoPilotPlugins/PX4/SensorsComponent.qml

@ -41,7 +41,7 @@ SetupPage { @@ -41,7 +41,7 @@ SetupPage {
readonly property string gyroHelp: qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still. Click Ok to start calibration.")
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. Click Ok to start calibration.")
readonly property string levelHelp: qsTr("To level the horizon you need to place the vehicle in its level flight position and press OK.")
readonly property string airspeedHelp: qsTr("For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor.")
readonly property string airspeedHelp: qsTr("For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor. Do not touch the sensor or obstruct any holes during the calibration.")
readonly property string statusTextAreaDefaultText: qsTr("Start the individual calibration steps by clicking one of the buttons to the left.")

4
src/PlanView/SurveyItemEditor.qml

@ -51,8 +51,8 @@ Rectangle { @@ -51,8 +51,8 @@ Rectangle {
}
}
missionItem.cameraOrientationFixed = false
if (index == -1) {
gridTypeCombo.currentIndex = _gridTypeManual
if (index == _cameraList.length) {
gridTypeCombo.currentIndex = _gridTypeCustomCamera
} else {
gridTypeCombo.currentIndex = index
if (index != 1) {

7
src/comm/QGCXPlaneLink.cc

@ -635,9 +635,10 @@ void QGCXPlaneLink::readBytes() @@ -635,9 +635,10 @@ void QGCXPlaneLink::readBytes()
if (p.index == 3)
{
ind_airspeed = p.f[5] * 0.44704f;
true_airspeed = p.f[6] * 0.44704f;
groundspeed = p.f[7] * 0.44704;
float knotsToMetersPerSecond = 0.514444f;
ind_airspeed = p.f[5] * knotsToMetersPerSecond;
true_airspeed = p.f[6] * knotsToMetersPerSecond;
groundspeed = p.f[7] * knotsToMetersPerSecond;
//qDebug() << "SPEEDS:" << "airspeed" << airspeed << "m/s, groundspeed" << groundspeed << "m/s";
}

Loading…
Cancel
Save