mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ACM: Added note about scaling rates
This commit is contained in:
parent
eb53200179
commit
450f89ec5d
@ -424,6 +424,8 @@ static int32_t get_new_altitude()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t diff = abs(next_WP.alt - target_altitude);
|
int32_t diff = abs(next_WP.alt - target_altitude);
|
||||||
|
// scale is how we generate a desired rate from the elapsed time
|
||||||
|
// a smaller scale means faster rates
|
||||||
int8_t _scale = 4;
|
int8_t _scale = 4;
|
||||||
|
|
||||||
if (next_WP.alt < target_altitude){
|
if (next_WP.alt < target_altitude){
|
||||||
|
Loading…
Reference in New Issue
Block a user