|
17 | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
18 | 18 | */ |
19 | 19 |
|
20 | | -#define VERSION 5.36 |
| 20 | +#define VERSION 5.38 |
21 | 21 |
|
22 | 22 | /* Entries should be ordered as follows: |
23 | 23 | 1. Saveable parameters |
24 | 24 | 2. Temporary parameters |
25 | 25 | 3. Display values |
26 | 26 | */ |
27 | | -//Next param id (increase when adding new parameter!): 159 |
28 | | -//Next value Id: 2055 |
| 27 | +//Next param id (increase when adding new parameter!): 164 |
| 28 | +//Next value Id: 2057 |
29 | 29 | /* category name unit min max default id */ |
30 | 30 |
|
31 | 31 | #define MOTOR_PARAMETERS_COMMON \ |
|
53 | 53 | PARAM_ENTRY(CAT_MOTOR, iqkp, "", 0, 20000, 32, 107 ) \ |
54 | 54 | PARAM_ENTRY(CAT_MOTOR, idkp, "", 0, 20000, 32, 149 ) \ |
55 | 55 | PARAM_ENTRY(CAT_MOTOR, curki, "", 0, 100000, 20000, 108 ) \ |
| 56 | + PARAM_ENTRY(CAT_MOTOR, exckp, "", 0, 20000, 3000, 162 ) \ |
| 57 | + PARAM_ENTRY(CAT_MOTOR, cogkp, "", -1000, 1000, 0, 159 ) \ |
| 58 | + PARAM_ENTRY(CAT_MOTOR, cogph, "", 0, 65535, 0, 160 ) \ |
| 59 | + PARAM_ENTRY(CAT_MOTOR, cogmax, "", 0, 30000, 0, 161 ) \ |
56 | 60 | PARAM_ENTRY(CAT_MOTOR, vlimflt, "", 0, 16, 10, 145 ) \ |
57 | 61 | PARAM_ENTRY(CAT_MOTOR, vlimmargin, "dig", 0, 10000, 2500, 141 ) \ |
58 | 62 | PARAM_ENTRY(CAT_MOTOR, fwcurmax, "A", -1000, 0, -100, 144 ) \ |
| 63 | + PARAM_ENTRY(CAT_MOTOR, excurmax, "A", 0, 10, 0, 163 ) \ |
59 | 64 | PARAM_ENTRY(CAT_MOTOR, syncofs, "dig", 0, 65535, 0, 70 ) \ |
60 | 65 | PARAM_ENTRY(CAT_MOTOR, lqminusld, "mH", 0, 1000, 0, 139 ) \ |
61 | 66 | PARAM_ENTRY(CAT_MOTOR, fluxlinkage, "mWeber", 0, 1000, 90, 140 ) \ |
|
68 | 73 | PARAM_ENTRY(CAT_INVERTER,ocurlim, "A", -65536, 65536, 100, 22 ) \ |
69 | 74 | PARAM_ENTRY(CAT_INVERTER,il1gain, "dig/A", -100, 100, 4.7, 27 ) \ |
70 | 75 | PARAM_ENTRY(CAT_INVERTER,il2gain, "dig/A", -100, 100, 4.7, 28 ) \ |
71 | | - PARAM_ENTRY(CAT_INVERTER,udcgain, "dig/V", 0, 4095, 6.175, 29 ) \ |
| 76 | + PARAM_ENTRY(CAT_INVERTER,udcgain, "dig/V", -100, 100, 6.175, 29 ) \ |
72 | 77 | PARAM_ENTRY(CAT_INVERTER,udcofs, "dig", 0, 4095, 0, 77 ) \ |
73 | 78 | PARAM_ENTRY(CAT_INVERTER,udclim, "V", 0, 1000, 540, 48 ) \ |
74 | 79 | PARAM_ENTRY(CAT_INVERTER,snshs, SNS_HS, 0, 7, 0, 45 ) \ |
|
216 | 221 | VALUE_ENTRY(ifw, "A", 2048 ) \ |
217 | 222 | VALUE_ENTRY(ud, "dig", 2046 ) \ |
218 | 223 | VALUE_ENTRY(uq, "dig", 2047 ) \ |
| 224 | + VALUE_ENTRY(uexc, "dig", 2056 ) \ |
| 225 | + VALUE_ENTRY(anticog, "dig", 2055 ) \ |
219 | 226 |
|
220 | 227 | #if CONTROL == CTRL_SINE |
221 | 228 | #define PARAM_LIST \ |
|
264 | 271 | #define TRIPMODES "0=AllOff, 1=DcSwOn, 2=PrechargeOn, 3=AutoResume" |
265 | 272 | #define SNS_HS "0=JCurve, 1=Semikron, 2=MBB600, 3=KTY81, 4=PT1000, 5=NTCK45_2k2, 6=Leaf, 7=BMW-i3" |
266 | 273 | #define SNS_M "12=KTY83-110, 13=KTY84-130, 14=Leaf, 15=KTY81-110, 16=Toyota, 21=OutlanderFront, 22=EpcosB57861-S, 23=ToyotaGen2" |
267 | | -#define PWMFUNCS "0=tmpm, 1=tmphs, 2=speed, 3=speedfrq" |
| 274 | +#define PWMFUNCS "0=tmpm, 1=tmphs, 2=speed, 3=exciter" |
268 | 275 | #define SINECURVES "0=VoltageSlip, 1=Simultaneous" |
269 | 276 | #define CRUISEMODS "0=Off, 1=Switch, 2=CAN, 3=ThrottlePot, 4=Limiter" |
270 | 277 | #define DIRMODES "0=Button, 1=Switch, 2=ButtonReversed, 3=SwitchReversed, 4=DefaultForward" |
|
277 | 284 | #define CANSPEEDS "0=125k, 1=250k, 2=500k, 3=800k, 4=1M" |
278 | 285 | #define CANIOS "1=Cruise, 2=Start, 4=Brake, 8=Fwd, 16=Rev, 32=Bms" |
279 | 286 | #define CANPERIODS "0=100ms, 1=10ms" |
280 | | -#define HWREVS "0=Rev1, 1=Rev2, 2=Rev3, 3=Tesla, 4=BluePill, 5=Prius, 6=MiniMainboard, 7=Leaf2, 8=Leaf3, 9=BMWi3" |
| 287 | +#define HWREVS "0=Rev1, 1=Rev2, 2=Rev3, 3=Tesla, 4=BluePill, 5=Prius, 6=MiniMainboard, 7=Leaf2, 8=Leaf3, 9=BMWi3, 10=Zoe" |
281 | 288 | #define SWAPS "0=None, 1=Currents12, 2=SinCos, 4=PWMOutput13, 8=PWMOutput23" |
282 | 289 | #define OUTMODES "0=DcSw, 1=TmpmThresh, 2=TmphsThresh" |
283 | 290 | #define STATUS "0=None, 1=UdcLow, 2=UdcHigh, 4=UdcBelowUdcSw, 8=UdcLim, 16=EmcyStop, 32=MProt, 64=PotPressed, 128=TmpHs, 256=WaitStart, 512=BrakeCheck" |
@@ -344,7 +351,7 @@ enum _pwmfuncs |
344 | 351 | PWM_FUNC_TMPM = 0, |
345 | 352 | PWM_FUNC_TMPHS, |
346 | 353 | PWM_FUNC_SPEED, |
347 | | - PWM_FUNC_SPEEDFRQ |
| 354 | + PWM_FUNC_EXCITER |
348 | 355 | }; |
349 | 356 |
|
350 | 357 | enum _idlemodes |
|
0 commit comments