foxBMS - Unit Tests
1.3.0
The foxBMS Unit Tests API Documentation
|
moving average algorithm More...
Go to the source code of this file.
Functions | |
void | ALGO_MovAverage (void) |
moving average algorithm
SPDX-License-Identifier: BSD-3-Clause
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
Definition in file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_10s ((10000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 76 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_1s ((1000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 74 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_30s ((30000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 77 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_5s ((5000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 75 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_60s ((60000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 78 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_CFG (MOVING_AVERAGE_DURATION_CURRENT_CONFIG_MS / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 79 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_10s ((10000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 92 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_1s ((1000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 90 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_30s ((30000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 93 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_5s ((5000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 91 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_60s ((60000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 94 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_CFG (MOVING_AVERAGE_DURATION_POWER_CONFIG_MS / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 95 of file moving_average.c.
#define MEM_EXT_SDRAM |
TODO
Definition at line 64 of file moving_average.c.
void ALGO_MovAverage | ( | void | ) |
moving average function for the algorithm module
Definition at line 176 of file moving_average.c.
|
static |
Definition at line 121 of file moving_average.c.
|
static |
Definition at line 122 of file moving_average.c.
|
static |
Definition at line 145 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 153 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 151 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 154 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 152 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 155 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 156 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 150 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 163 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 161 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 164 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 162 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 165 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 166 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 160 of file moving_average.c.
|
static |
Definition at line 144 of file moving_average.c.