mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Consistent autopilot variable names, use alt_hold_climb_rate (#14136)
* consistent autopilot parameter names - add colons after each blackbox header line - change alt_hold_throttle_response to alt_hold_climb_rate - don't use cfg abbreviation for apConfig() because it is harder to search * enforce semicolon with do... while (0) * don't abbreviate autopilotConfig to apConfig * remove semicolon after break to enforce semicolon at input line ending * explanatory message * fix copy and paste errors * restore local cfg alias in place of autopilotConfig() * struct name formatting as requested by blckmn Co-Authored-By: Jay Blackman <blckmn@users.noreply.github.com> * underscore the CLI names, fix prev commit Co-Authored-By: Jay Blackman <blckmn@users.noreply.github.com> * Update src/main/fc/parameter_names.h * Update src/main/fc/parameter_names.h --------- Co-authored-by: Jay Blackman <blckmn@users.noreply.github.com> Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
This commit is contained in:
parent
9ef4857eeb
commit
86767ba112
21 changed files with 202 additions and 200 deletions
|
@ -586,7 +586,7 @@ STATIC_UNIT_TESTED FAST_CODE_NOINLINE float pidLevel(int axis, const pidProfile_
|
|||
angleLimit = 85.0f; // allow autopilot to use whatever angle it needs to stop
|
||||
}
|
||||
// limit pilot requested angle to half the autopilot angle to avoid excess speed and chaotic stops
|
||||
angleLimit = fminf(0.5f * apConfig()->max_angle, angleLimit);
|
||||
angleLimit = fminf(0.5f * autopilotConfig()->maxAngle, angleLimit);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue