Browse Source

ArduCopter: InertialNav time constant CH6 tuning changed to only update enabled axis

mission-4.1.18
rmackay9 12 years ago
parent
commit
99b32a39c4
  1. 6
      ArduCopter/ArduCopter.pde

6
ArduCopter/ArduCopter.pde

@ -2158,12 +2158,14 @@ static void tuning(){
break; break;
#endif #endif
#if INERTIAL_NAV_XY == ENABLED || INERTIAL_NAV_Z == ENABLED
case CH6_INAV_TC: case CH6_INAV_TC:
#if INERTIAL_NAV_XY == ENABLED
inertial_nav.set_time_constant_xy(tuning_value); inertial_nav.set_time_constant_xy(tuning_value);
#endif
#if INERTIAL_NAV_Z == ENABLED
inertial_nav.set_time_constant_z(tuning_value); inertial_nav.set_time_constant_z(tuning_value);
break;
#endif #endif
break;
case CH6_THR_ACCEL_KP: case CH6_THR_ACCEL_KP:
g.pid_throttle_accel.kP(tuning_value); g.pid_throttle_accel.kP(tuning_value);

Loading…
Cancel
Save