mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +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
|
@ -50,7 +50,7 @@ extern "C" {
|
|||
|
||||
PG_REGISTER(accelerometerConfig_t, accelerometerConfig, PG_ACCELEROMETER_CONFIG, 0);
|
||||
PG_REGISTER(altHoldConfig_t, altHoldConfig, PG_ALTHOLD_CONFIG, 0);
|
||||
PG_REGISTER(apConfig_t, apConfig, PG_AUTOPILOT, 0);
|
||||
PG_REGISTER(autopilotConfig_t, autopilotConfig, PG_AUTOPILOT, 0);
|
||||
PG_REGISTER(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 0);
|
||||
PG_REGISTER(positionConfig_t, positionConfig, PG_POSITION, 0);
|
||||
PG_REGISTER(rcControlsConfig_t, rcControlsConfig, PG_RC_CONTROLS_CONFIG, 0);
|
||||
|
|
|
@ -79,7 +79,7 @@ extern "C" {
|
|||
PG_REGISTER(gpsConfig_t, gpsConfig, PG_GPS_CONFIG, 0);
|
||||
PG_REGISTER(gpsRescueConfig_t, gpsRescueConfig, PG_GPS_RESCUE, 0);
|
||||
PG_REGISTER(positionConfig_t, positionConfig, PG_POSITION, 0);
|
||||
PG_REGISTER(apConfig_t, apConfig, PG_AUTOPILOT, 0);
|
||||
PG_REGISTER(autopilotConfig_t, autopilotConfig, PG_AUTOPILOT, 0);
|
||||
|
||||
float rcData[MAX_SUPPORTED_RC_CHANNEL_COUNT];
|
||||
uint16_t averageSystemLoadPercent = 0;
|
||||
|
|
|
@ -75,7 +75,7 @@ extern "C" {
|
|||
PG_REGISTER(rcControlsConfig_t, rcControlsConfig, PG_RC_CONTROLS_CONFIG, 0);
|
||||
PG_REGISTER(barometerConfig_t, barometerConfig, PG_BAROMETER_CONFIG, 0);
|
||||
PG_REGISTER(gpsConfig_t, gpsConfig, PG_GPS_CONFIG, 0);
|
||||
PG_REGISTER(apConfig_t, apConfig, PG_AUTOPILOT, 0);
|
||||
PG_REGISTER(autopilotConfig_t, autopilotConfig, PG_AUTOPILOT, 0);
|
||||
|
||||
PG_RESET_TEMPLATE(featureConfig_t, featureConfig,
|
||||
.enabledFeatures = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue