Add auto generated location id list.
[freeems-vanilla.git] / src / fake.coreVarsGenerator.c
blobce1c4f2ead38054765065bba1116acd4f205468f
1 /* FreeEMS - the open source engine management system
3 Copyright 2009 Fred Cooke
5 This file is part of the FreeEMS project.
7 FreeEMS software is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 FreeEMS software is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
20 We ask that if you make any changes to this file you email them upstream to
21 us at admin(at)diyefi(dot)org or, even better, fork the code on github.com!
23 Thank you for choosing FreeEMS to run your engine! */
26 /** @file fake.coreVarsGenerator.c
27 * @ingroup measurementsAndCalculations
28 * @ingroup testing
30 * @brief Iterate through possible sensor values
32 * A very basic way of trying out all possible input values to the system.
34 * @author Fred Cooke
38 #define COREVARSGENERATOR_C
39 #include "inc/freeEMS.h"
40 #include "inc/commsCore.h"
41 #include "inc/coreVarsGenerator.h"
44 /** @brief Iterate through possible sensor values
46 * A very basic way of trying out all possible input values to the system.
48 * This file needs to be manually added to the output instead of the normal one
49 * by renaming the real version with a suffix (eg .real) and renaming this one
50 * by removing the prefix (ie fake.).
52 * @author Fred Cooke
54 void generateCoreVars(){
57 * Fastest rate of change for RPM at the top, lowest rate of change for
58 * battery voltage at the bottom. Each time a variable reaches its maximum
59 * it rolls over back to zero. Because the numbers are prime they will not
60 * remain synchronised and should give a nice mix of output value sets.
62 CoreVars->RPM += 11;
63 CoreVars->MAP += 7;
64 CoreVars->IAT += 5;
65 CoreVars->CHT += 3;
66 CoreVars->BRV += 1;
68 /* Not currently used... */
69 CoreVars->DDRPM = 0;
70 CoreVars->DRPM = 0;
71 CoreVars->AAP = 0;
72 CoreVars->TPS = 0;
73 CoreVars->EGO = 0;
74 CoreVars->EGO2 = 0;
75 CoreVars->MAT = 0;
76 CoreVars->IAP = 0;
77 CoreVars->MAF = 0;