Cosmetic tweaks for tuning

This commit is contained in:
Jason Short 2012-02-11 15:29:02 -08:00
parent f369a02aab
commit 0315221bd1
1 changed files with 3 additions and 2 deletions

View File

@ -1921,7 +1921,8 @@ static void tuning(){
g.rc_6.set_range(0,300); // 0 to 1 g.rc_6.set_range(0,300); // 0 to 1
g.stablize_d.set(tuning_value); g.stablize_d.set(tuning_value);
//g.rc_6.set_range(0,60); // 0 to 1 //tuning_value = (float)g.rc_6.control_in / 100000.0;
//g.rc_6.set_range(0,1000); // 0 to 1
//g.pid_rate_roll.kD(tuning_value); //g.pid_rate_roll.kD(tuning_value);
//g.pid_rate_pitch.kD(tuning_value); //g.pid_rate_pitch.kD(tuning_value);
break; break;
@ -1946,7 +1947,7 @@ static void tuning(){
break; break;
case CH6_RATE_KI: case CH6_RATE_KI:
g.rc_6.set_range(0,300); // 0 to .3 g.rc_6.set_range(0,500); // 0 to .5
g.pid_rate_roll.kI(tuning_value); g.pid_rate_roll.kI(tuning_value);
g.pid_rate_pitch.kI(tuning_value); g.pid_rate_pitch.kI(tuning_value);
break; break;