Browse Source

Fix double send of MAV_CMD_PREFLIGHT_CALIBRATION

QGC4.4
DonLakeFlyer 4 years ago committed by Don Gagne
parent
commit
59eba1b132
  1. 8
      ChangeLog.md
  2. 4
      src/AutoPilotPlugins/Common/RadioComponentController.cc

8
ChangeLog.md

@ -4,6 +4,14 @@ Note: This file only contains high level features or important fixes. @@ -4,6 +4,14 @@ Note: This file only contains high level features or important fixes.
## 4.1 - Daily build
### 4.1.2 - Not yet released
* Bug: Radio setup - Fix double send of `MAV_CMD_PREFLIGHT_CALIBRATION` causing "Unable to send command" error.
### 4.1.1 - Stable
* Fix TCP link comms
### 4.1.0
* Support simple cameras which only support DIGICAM_CONTROL in the Photo/Video control on Fly View.
* Load Parameters From File: Support loading parameters which don't currently existing on the vehicle.
* Load Parameters From File: Add dialog which shows diff of file and vehicle params. Selective param upload from file.

4
src/AutoPilotPlugins/Common/RadioComponentController.cc

@ -700,10 +700,6 @@ void RadioComponentController::_writeCalibration(void) @@ -700,10 +700,6 @@ void RadioComponentController::_writeCalibration(void)
{
if (!_uas) return;
if (_px4Vehicle()) {
_vehicle->stopCalibration();
}
if (!_px4Vehicle() && (_vehicle->vehicleType() == MAV_TYPE_HELICOPTER || _vehicle->multiRotor()) && _rgChannelInfo[_rgFunctionChannelMapping[rcCalFunctionThrottle]].reversed) {
// A reversed throttle could lead to dangerous power up issues if the firmware doesn't handle it absolutely correctly in all places.
// So in this case fail the calibration for anything other than PX4 which is known to be able to handle this correctly.

Loading…
Cancel
Save