mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 10:58:30 -04:00
made RateP range a little more sensible
removed unused var
This commit is contained in:
parent
b508f817e4
commit
118a232b13
@ -392,7 +392,6 @@ static int16_t airspeed; // m/s * 100
|
|||||||
|
|
||||||
// Location Errors
|
// Location Errors
|
||||||
// ---------------
|
// ---------------
|
||||||
static int32_t yaw_error; // how off are we pointed
|
|
||||||
static int32_t long_error, lat_error; // temp for debugging
|
static int32_t long_error, lat_error; // temp for debugging
|
||||||
|
|
||||||
// Battery Sensors
|
// Battery Sensors
|
||||||
@ -1438,7 +1437,7 @@ static void tuning(){
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CH6_RATE_KP:
|
case CH6_RATE_KP:
|
||||||
g.rc_6.set_range(0,300); // 0 to .3
|
g.rc_6.set_range(40,300); // 0 to .3
|
||||||
g.pi_rate_roll.kP(tuning_value);
|
g.pi_rate_roll.kP(tuning_value);
|
||||||
g.pi_rate_pitch.kP(tuning_value);
|
g.pi_rate_pitch.kP(tuning_value);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user