mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Tidy use of USE_OSD_SLAVE
This commit is contained in:
parent
6e025aeba6
commit
a983f4b325
9 changed files with 166 additions and 219 deletions
|
@ -17,7 +17,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef USE_OSD_SLAVE
|
||||
#include <stdbool.h>
|
||||
#include "common/time.h"
|
||||
#include "config/parameter_group.h"
|
||||
|
@ -108,7 +107,9 @@ typedef struct pidProfile_s {
|
|||
uint16_t itermLimit;
|
||||
} pidProfile_t;
|
||||
|
||||
#ifndef USE_OSD_SLAVE
|
||||
PG_DECLARE_ARRAY(pidProfile_t, MAX_PROFILE_COUNT, pidProfiles);
|
||||
#endif
|
||||
|
||||
typedef struct pidConfig_s {
|
||||
uint8_t pid_process_denom; // Processing denominator for PID controller vs gyro sampling rate
|
||||
|
@ -133,5 +134,3 @@ void pidInitFilters(const pidProfile_t *pidProfile);
|
|||
void pidInitConfig(const pidProfile_t *pidProfile);
|
||||
void pidInit(const pidProfile_t *pidProfile);
|
||||
void pidCopyProfile(uint8_t dstPidProfileIndex, uint8_t srcPidProfileIndex);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue