LambdaTables.c

Go to the documentation of this file.
00001 /*      LambdaTables.c
00002 
00003         Copyright 2008 Fred Cooke
00004 
00005         This file is part of the FreeEMS project.
00006 
00007         FreeEMS software is free software: you can redistribute it and/or modify
00008         it under the terms of the GNU General Public License as published by
00009         the Free Software Foundation, either version 3 of the License, or
00010         (at your option) any later version.
00011 
00012         FreeEMS software is distributed in the hope that it will be useful,
00013         but WITHOUT ANY WARRANTY; without even the implied warranty of
00014         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015         GNU General Public License for more details.
00016 
00017         You should have received a copy of the GNU General Public License
00018         along with any FreeEMS software.  If not, see <http://www.gnu.org/licenses/>.
00019 
00020         We ask that if you make any changes to this file you send them upstream to us at admin@diyefi.org
00021 
00022         Thank you for choosing FreeEMS to run your engine! */
00023 
00024 #include "inc/freeEMS.h"
00025 
00026 
00027 /* The Lambda Table */
00028 const volatile mainTable LambdaTableFlash BIGTABLES = {
00029         MAINTABLE_RPM_LENGTH,           /* LambdaTable.RPMLength */
00030         MAINTABLE_LOAD_LENGTH,          /* LambdaTable.LoadLength */
00031         /* LambdaTable.RPM */
00032         {
00033                     0,    200,    700,   1050,
00034                  1400,   1750,   2100,   2450,
00035                  2800,   3150,   3500,   3850,
00036                  4200,   4550,   4900,   5250,
00037                  5600,   5950,   6300,   6650,
00038                  7000,   7350,   7700,   8050,
00039                  8400,   8750,   9100
00040         },
00041         /*LambdaTable.Load */
00042         {
00043                  1600,   3200,   4800,   6400,
00044                  8000,   9600,  11200,  12800,
00045                 14400,  16000,  17600,  19200,
00046                 20800,  22400,  24000,  25600,
00047                 27200,  28800,  30400,  32000,
00048                 33600
00049         },
00050         /* LambdaTable.Table */
00051         {       /* Laid out to make sense for 24 RPM and 19 Load bins, 8 extras on end to make up size. */
00052                 /* 14.7,   14.7,  14.35,   14.0,   13.5,   13.0,   12.5,  12.25,   12.0,  11.75,   11.5,  11.25,   11.0,   11.0,   11.0,   11.0,   11.0,   11.0,   11.0, */
00053                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00054                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00055                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00056                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00057                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00058                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00059 
00060                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00061                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00062                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00063                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00064                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00065                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00066 
00067                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00068                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00069                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00070                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00071                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00072                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00073 
00074                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00075                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00076                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00077                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00078                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00079                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00080                   24520,  24520,  24520,  24520,  24520,  0x9999 /* 6 extras to allow different axis sizes. Rich by default.*/
00081         }
00082 };
00083 
00084 
00085 /* The Lambda Table */
00086 const volatile mainTable LambdaTableFlash2 BIGTABLES = {
00087         MAINTABLE_RPM_LENGTH,           /* LambdaTable.RPMLength */
00088         MAINTABLE_LOAD_LENGTH,          /* LambdaTable.LoadLength */
00089         /* LambdaTable.RPM */
00090         {
00091                     0,    200,    700,   1050,
00092                  1400,   1750,   2100,   2450,
00093                  2800,   3150,   3500,   3850,
00094                  4200,   4550,   4900,   5250,
00095                  5600,   5950,   6300,   6650,
00096                  7000,   7350,   7700,   8050,
00097                  8400,   8750,   9100
00098         },
00099         /*LambdaTable.Load */
00100         {
00101                  1600,   3200,   4800,   6400,
00102                  8000,   9600,  11200,  12800,
00103                 14400,  16000,  17600,  19200,
00104                 20800,  22400,  24000,  25600,
00105                 27200,  28800,  30400,  32000,
00106                 33600
00107         },
00108         /* LambdaTable.Table */
00109         {       /* Laid out to make sense for 24 RPM and 19 Load bins, 8 extras on end to make up size. */
00110                 /* 14.7,   14.7,  14.35,   14.0,   13.5,   13.0,   12.5,  12.25,   12.0,  11.75,   11.5,  11.25,   11.0,   11.0,   11.0,   11.0,   11.0,   11.0,   11.0, */
00111                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00112                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00113                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00114                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00115                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00116                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00117 
00118                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00119                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00120                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00121                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00122                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00123                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00124 
00125                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00126                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00127                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00128                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00129                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00130                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00131 
00132                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00133                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00134                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00135                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00136                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00137                   32768,  32768,  31987,  31207,  30093,  28978,  27863,  27307,  26749,  26192,  25635,  25078,  24520,  24520,  24520,  24520,  24520,  24520,  24520,
00138                   24520,  24520,  24520,  24520,  24520,  0x8888 /* 6 extras to allow different axis sizes. Rich by default.*/
00139         }
00140 };

Generated on Mon Nov 10 21:18:50 2008 for freeems by  doxygen 1.5.2