foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
moving average algorithm More...
Go to the source code of this file.
Functions | |
void | ALGO_MovAverage () |
moving average algorithm
BSD 3-Clause License 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:
″This product uses parts of foxBMS®″
″This product includes parts of foxBMS®″
″This product is derived from foxBMS®″
Definition in file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_10s ((10000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 73 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_1s ((1000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 71 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_30s ((30000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 74 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_5s ((5000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 72 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_60s ((60000u) / ISA_CURRENT_CYCLE_TIME_MS) |
Definition at line 75 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 76 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_10s ((10000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 89 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_1s ((1000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 87 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_30s ((30000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 90 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_5s ((5000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 88 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_60s ((60000u) / ISA_POWER_CYCLE_TIME_MS) |
Definition at line 91 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 92 of file moving_average.c.
#define MEM_EXT_SDRAM |
TODO
Definition at line 61 of file moving_average.c.
void ALGO_MovAverage | ( | void | ) |
moving average function for the algorithm module
Definition at line 173 of file moving_average.c.
|
static |
Definition at line 118 of file moving_average.c.
|
static |
Definition at line 119 of file moving_average.c.
|
static |
Definition at line 142 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 150 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 149 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 153 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 148 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 147 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 160 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 158 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 159 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 163 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 157 of file moving_average.c.
|
static |
Definition at line 141 of file moving_average.c.