foxBMS - Unit Tests
1.5.0
The foxBMS Unit Tests API Documentation
|
moving average algorithm More...
#include "moving_average.h"
#include "algorithm_cfg.h"
#include "database.h"
#include "fstd_types.h"
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
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 81 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_1s ((1000u) / ISA_CURRENT_CYCLE_TIME_ms) |
Definition at line 79 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_30s ((30000u) / ISA_CURRENT_CYCLE_TIME_ms) |
Definition at line 82 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_5s ((5000u) / ISA_CURRENT_CYCLE_TIME_ms) |
Definition at line 80 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_CUR_60s ((60000u) / ISA_CURRENT_CYCLE_TIME_ms) |
Definition at line 83 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 84 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_10s ((10000u) / ISA_POWER_CYCLE_TIME_ms) |
Definition at line 97 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_1s ((1000u) / ISA_POWER_CYCLE_TIME_ms) |
Definition at line 95 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_30s ((30000u) / ISA_POWER_CYCLE_TIME_ms) |
Definition at line 98 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_5s ((5000u) / ISA_POWER_CYCLE_TIME_ms) |
Definition at line 96 of file moving_average.c.
#define ALGO_NUMBER_AVERAGE_VALUES_POW_60s ((60000u) / ISA_POWER_CYCLE_TIME_ms) |
Definition at line 99 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 100 of file moving_average.c.
#define MEM_EXT_SDRAM |
TODO
Definition at line 69 of file moving_average.c.
void ALGO_MovAverage | ( | void | ) |
moving average function for the algorithm module
Definition at line 182 of file moving_average.c.
|
static |
Definition at line 127 of file moving_average.c.
|
static |
Definition at line 128 of file moving_average.c.
|
static |
Definition at line 151 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 159 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 157 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 160 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 158 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 161 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 162 of file moving_average.c.
|
static |
Pointer for current moving average calculation
Definition at line 156 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 169 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 167 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 170 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 168 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 171 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 172 of file moving_average.c.
|
static |
Pointer for power moving average calculation
Definition at line 166 of file moving_average.c.
|
static |
Definition at line 150 of file moving_average.c.