mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Rename FAST_RAM to FAST_DATA
This commit is contained in:
parent
da9bb85843
commit
4c99ad743d
32 changed files with 158 additions and 158 deletions
|
@ -74,8 +74,8 @@ static bool isRxDataNew = false;
|
|||
static float rcCommandDivider = 500.0f;
|
||||
static float rcCommandYawDivider = 500.0f;
|
||||
|
||||
FAST_RAM_ZERO_INIT uint8_t interpolationChannels;
|
||||
static FAST_RAM_ZERO_INIT uint32_t rcFrameNumber;
|
||||
FAST_DATA_ZERO_INIT uint8_t interpolationChannels;
|
||||
static FAST_DATA_ZERO_INIT uint32_t rcFrameNumber;
|
||||
|
||||
enum {
|
||||
ROLL_FLAG = 1 << ROLL,
|
||||
|
@ -96,7 +96,7 @@ enum {
|
|||
#define RC_SMOOTHING_RX_RATE_MAX_US 50000 // 50ms or 20hz
|
||||
#define RC_SMOOTHING_INTERPOLATED_FEEDFORWARD_DERIVATIVE_PT1_HZ 100 // The value to use for "auto" when interpolated feedforward is enabled
|
||||
|
||||
static FAST_RAM_ZERO_INIT rcSmoothingFilter_t rcSmoothingData;
|
||||
static FAST_DATA_ZERO_INIT rcSmoothingFilter_t rcSmoothingData;
|
||||
#endif // USE_RC_SMOOTHING_FILTER
|
||||
|
||||
uint32_t getRcFrameNumber()
|
||||
|
@ -315,9 +315,9 @@ static void checkForThrottleErrorResetState(uint16_t rxRefreshRate)
|
|||
|
||||
static FAST_CODE uint8_t processRcInterpolation(void)
|
||||
{
|
||||
static FAST_RAM_ZERO_INIT float rcCommandInterp[4];
|
||||
static FAST_RAM_ZERO_INIT float rcStepSize[4];
|
||||
static FAST_RAM_ZERO_INIT int16_t rcInterpolationStepCount;
|
||||
static FAST_DATA_ZERO_INIT float rcCommandInterp[4];
|
||||
static FAST_DATA_ZERO_INIT float rcStepSize[4];
|
||||
static FAST_DATA_ZERO_INIT int16_t rcInterpolationStepCount;
|
||||
|
||||
uint16_t rxRefreshRate;
|
||||
uint8_t updatedChannel = 0;
|
||||
|
@ -518,10 +518,10 @@ FAST_CODE_NOINLINE bool rcSmoothingAutoCalculate(void)
|
|||
static FAST_CODE uint8_t processRcSmoothingFilter(void)
|
||||
{
|
||||
uint8_t updatedChannel = 0;
|
||||
static FAST_RAM_ZERO_INIT float lastRxData[4];
|
||||
static FAST_RAM_ZERO_INIT bool initialized;
|
||||
static FAST_RAM_ZERO_INIT timeMs_t validRxFrameTimeMs;
|
||||
static FAST_RAM_ZERO_INIT bool calculateCutoffs;
|
||||
static FAST_DATA_ZERO_INIT float lastRxData[4];
|
||||
static FAST_DATA_ZERO_INIT bool initialized;
|
||||
static FAST_DATA_ZERO_INIT timeMs_t validRxFrameTimeMs;
|
||||
static FAST_DATA_ZERO_INIT bool calculateCutoffs;
|
||||
|
||||
// first call initialization
|
||||
if (!initialized) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue