From e902e8cd19e4af01facd16dd4d044d03197c4e0b Mon Sep 17 00:00:00 2001 From: jasonshort Date: Mon, 10 Jan 2011 02:13:57 +0000 Subject: [PATCH] Added Sonar throttle PID git-svn-id: https://arducopter.googlecode.com/svn/trunk@1471 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/EEPROM.pde | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ArduCopterMega/EEPROM.pde b/ArduCopterMega/EEPROM.pde index 9f0b95cd12..a3996bc4d7 100644 --- a/ArduCopterMega/EEPROM.pde +++ b/ArduCopterMega/EEPROM.pde @@ -131,7 +131,8 @@ void read_EEPROM_PID(void) pid_yaw.load_gains(); pid_nav.load_gains(); - pid_throttle.load_gains(); + pid_baro_throttle.load_gains(); + pid_sonar_throttle.load_gains(); // roll pitch stabilize_dampener = read_EE_compressed_float(EE_STAB_DAMPENER, 4); @@ -152,7 +153,8 @@ void save_EEPROM_PID(void) pid_yaw.save_gains(); pid_nav.save_gains(); - pid_throttle.save_gains(); + pid_baro_throttle.save_gains(); + pid_sonar_throttle.save_gains(); // roll pitch write_EE_compressed_float(stabilize_dampener, EE_STAB_DAMPENER, 4);