mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 15:55:48 +03:00
Add PID and Rate Profile names
This commit is contained in:
parent
3651bbc03a
commit
de5a54a19a
9 changed files with 156 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
|||
|
||||
#define MAX_NAME_LENGTH 16u
|
||||
|
||||
#define MAX_PROFILE_NAME_LENGTH 8u
|
||||
|
||||
typedef struct pilotConfig_s {
|
||||
char name[MAX_NAME_LENGTH + 1];
|
||||
char displayName[MAX_NAME_LENGTH + 1];
|
||||
|
@ -34,6 +36,22 @@ typedef struct pilotConfig_s {
|
|||
|
||||
PG_DECLARE(pilotConfig_t, pilotConfig);
|
||||
|
||||
typedef struct profileName_s {
|
||||
char name[MAX_PROFILE_NAME_LENGTH + 1];
|
||||
} profileName_t;
|
||||
|
||||
typedef struct rateProfileNameConfig_s {
|
||||
profileName_t profile[CONTROL_RATE_PROFILE_COUNT];
|
||||
} rateProfileNameConfig_t;
|
||||
|
||||
PG_DECLARE(rateProfileNameConfig_t, rateProfileName);
|
||||
|
||||
typedef struct pidProfileNameConfig_s {
|
||||
profileName_t profile[PID_PROFILE_COUNT];
|
||||
} pidProfileNameConfig_t;
|
||||
|
||||
PG_DECLARE(pidProfileNameConfig_t, pidProfileName);
|
||||
|
||||
typedef struct systemConfig_s {
|
||||
uint8_t pidProfileIndex;
|
||||
uint8_t activeRateProfile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue