Copter: ch6 tuning definition for yaw min headroom

This commit is contained in:
Leonard Hall 2015-02-11 21:04:10 +09:00 committed by Randy Mackay
parent 5b0bd49ff2
commit 3e8563dd8b
2 changed files with 5 additions and 0 deletions

View File

@ -152,6 +152,7 @@
#define CH6_RATE_PITCH_FF 52 // body frame pitch rate controller FF term
#define CH6_RATE_ROLL_FF 53 // body frame roll rate controller FF term
#define CH6_RATE_YAW_FF 54 // body frame yaw rate controller FF term
#define CH6_RATE_MOT_YAW_HEADROOM 55 // motors yaw headroom minimum
// Acro Trainer types
#define ACRO_TRAINER_DISABLED 0

View File

@ -196,5 +196,9 @@ static void tuning() {
case CH6_RATE_ROLL_KD:
g.pid_rate_roll.kD(tuning_value);
break;
case CH6_RATE_MOT_YAW_HEADROOM:
motors.set_yaw_headroom(tuning_value*1000);
break;
}
}