diff --git a/ArduCopterMega/ArduCopterMega.pde b/ArduCopterMega/ArduCopterMega.pde index ef5398d300..434368e9c9 100644 --- a/ArduCopterMega/ArduCopterMega.pde +++ b/ArduCopterMega/ArduCopterMega.pde @@ -763,7 +763,7 @@ void slow_loop() slow_loopCounter++; superslow_loopCounter++; - if(superslow_loopCounter > 1400){ // every 7 minutes + if(superslow_loopCounter > 800){ // every 4 minutes #if HIL_MODE != HIL_MODE_ATTITUDE if(g.rc_3.control_in == 0 && g.compass_enabled){ compass.save_offsets(); diff --git a/ArduCopterMega/config.h b/ArduCopterMega/config.h index c3b5a62af4..48db1f7b66 100644 --- a/ArduCopterMega/config.h +++ b/ArduCopterMega/config.h @@ -61,6 +61,7 @@ # define SONAR_PIN AP_RANGEFINDER_PITOT_TUBE #endif + ////////////////////////////////////////////////////////////////////////////// // AIRSPEED_SENSOR // AIRSPEED_RATIO @@ -72,6 +73,7 @@ # define AIRSPEED_RATIO 1.9936 // Note - this varies from the value in ArduPilot due to the difference in ADC resolution #endif + ////////////////////////////////////////////////////////////////////////////// // HIL_PROTOCOL OPTIONAL // HIL_MODE OPTIONAL @@ -114,6 +116,7 @@ #endif #endif + ////////////////////////////////////////////////////////////////////////////// // GPS_PROTOCOL // @@ -124,6 +127,7 @@ # define GPS_PROTOCOL GPS_PROTOCOL_AUTO #endif + ////////////////////////////////////////////////////////////////////////////// // GCS_PROTOCOL // GCS_PORT @@ -141,6 +145,7 @@ # define MAV_SYSTEM_ID 1 #endif + ////////////////////////////////////////////////////////////////////////////// // Serial port speeds. // @@ -175,6 +180,7 @@ # define HIGH_DISCHARGE 1760 #endif + ////////////////////////////////////////////////////////////////////////////// // INPUT_VOLTAGE // @@ -182,6 +188,7 @@ # define INPUT_VOLTAGE 5.0 #endif + ////////////////////////////////////////////////////////////////////////////// // MAGNETOMETER #ifndef MAGNETOMETER @@ -280,7 +287,7 @@ # define ACRO_RATE_ROLL_D 0.0 #endif #ifndef ACRO_RATE_ROLL_IMAX -# define ACRO_RATE_ROLL_IMAX 20 +# define ACRO_RATE_ROLL_IMAX 20 #endif #ifndef ACRO_RATE_PITCH_P @@ -293,7 +300,7 @@ # define ACRO_RATE_PITCH_D 0.0 #endif #ifndef ACRO_RATE_PITCH_IMAX -# define ACRO_RATE_PITCH_IMAX 20 +# define ACRO_RATE_PITCH_IMAX 20 #endif #ifndef ACRO_RATE_YAW_P @@ -350,13 +357,13 @@ # define YAW_P 0.4 // increase for more aggressive Yaw Hold, decrease if it's bouncy #endif #ifndef YAW_I -# define YAW_I 0.000 // set to .0001 to try and get over user's steady state error caused by poor balance +# define YAW_I 0.0001 // set to .0001 to try and get over user's steady state error caused by poor balance #endif #ifndef YAW_D # define YAW_D 0.05 // Trying a lower value to prevent odd behavior #endif #ifndef YAW_IMAX -# define YAW_IMAX 1 // degrees * 100 +# define YAW_IMAX .5 // degrees * 100 #endif ////////////////////////////////////////////////////////////////////////////// @@ -375,7 +382,7 @@ # define NAV_LOITER_P 2.5 // upped to be a bit more aggressive #endif #ifndef NAV_LOITER_I -# define NAV_LOITER_I 0.05 // upped a bit to deal with wind faster +# define NAV_LOITER_I 0.10 // upped a bit to deal with wind faster #endif #ifndef NAV_LOITER_D # define NAV_LOITER_D 0.00 @@ -412,14 +419,15 @@ #endif #endif + ////////////////////////////////////////////////////////////////////////////// // Throttle control gains // #ifndef THROTTLE_BARO_P -# define THROTTLE_BARO_P 0.3 +# define THROTTLE_BARO_P 0.25 #endif #ifndef THROTTLE_BARO_I -# define THROTTLE_BARO_I 0.005 +# define THROTTLE_BARO_I 0.0045 #endif #ifndef THROTTLE_BARO_D # define THROTTLE_BARO_D 0.03 @@ -472,6 +480,7 @@ # define CHANNEL_6_TUNING CH6_NONE #endif + ////////////////////////////////////////////////////////////////////////////// // Dataflash logging control // diff --git a/ArduCopterMega/system.pde b/ArduCopterMega/system.pde index 6b9c3717ba..5babaf8aaa 100644 --- a/ArduCopterMega/system.pde +++ b/ArduCopterMega/system.pde @@ -37,7 +37,7 @@ const struct Menu::command main_menu_commands[] PROGMEM = { }; // Create the top-level menu object. -MENU(main_menu, "AC 2.0.11 Beta", main_menu_commands); +MENU(main_menu, "AC 2.0.12 Beta", main_menu_commands); void init_ardupilot() {