Copter: disable direct tuning, we need accessors for this

This commit is contained in:
Andrew Tridgell 2014-02-08 18:08:40 +11:00
parent 6964529124
commit ebf6d47830

View File

@ -1531,13 +1531,12 @@ static void tuning(){
g.sonar_gain.set(tuning_value);
break;
#if AP_AHRS_NAVEKF_AVAILABLE
#if 0
// disabled for now - we need accessor functions
case CH6_EKF_VERTICAL_POS:
// EKF's baro vs accel (higher rely on accels more, baro impact is reduced)
ahrs.get_NavEKF()._gpsVertPosNoise = tuning_value;
break;
#endif
case CH6_EKF_HORIZONTAL_POS:
// EKF's gps vs accel (higher rely on accels more, gps impact is reduced)
@ -1548,7 +1547,7 @@ static void tuning(){
// EKF's accel noise (lower means trust accels more, gps & baro less)
ahrs.get_NavEKF()._accNoise = tuning_value;
break;
#endif // AP_AHRS_NAVEKF_AVAILABLE
#endif
}
}