From 8917ff1757721c57bc888e03bff4d1f84fc820a0 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 19 Aug 2013 18:08:50 +0200 Subject: [PATCH] Permanently storing onboard params now --- src/ui/QGCPX4VehicleConfig.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/QGCPX4VehicleConfig.cc b/src/ui/QGCPX4VehicleConfig.cc index 4d70c2229..c7c335ca1 100644 --- a/src/ui/QGCPX4VehicleConfig.cc +++ b/src/ui/QGCPX4VehicleConfig.cc @@ -368,7 +368,8 @@ void QGCPX4VehicleConfig::stopCalibrationRC() } QMessageBox::information(0,"Status",statusstr); - + QMessageBox::information(0,"Uploading the RC Calibration","The configuration will now be uploaded and permanently stored."); + writeCalibrationRC(); } void QGCPX4VehicleConfig::loadQgcConfig(bool primary) @@ -1108,6 +1109,8 @@ void QGCPX4VehicleConfig::writeCalibrationRC() QGC::SLEEP::usleep(50000); mav->setParameter(0, "RC_MAP_AUX3", (int32_t)(rcMapping[7]+1)); QGC::SLEEP::usleep(50000); + + mav->getParamManager()->copyVolatileParamsToPersistent(); } void QGCPX4VehicleConfig::requestCalibrationRC() -- 2.22.0