Skip to content

Commit

Permalink
Reorganized parameters
Browse files Browse the repository at this point in the history
Removed PWMSTUCK fault, it was too irritating
  • Loading branch information
jsphuebner committed Jul 15, 2020
1 parent 33f0087 commit 3473495
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 151 deletions.
245 changes: 101 additions & 144 deletions include/param_prj.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,66 +24,94 @@
2. Temporary parameters (id = 0)
3. Display values
*/

#if CONTROL == CTRL_SINE

//Next param id (increase when adding new parameter!): 128
//Next value Id: 2048
/* category name unit min max default id */
#define PARAM_LIST \
PARAM_ENTRY(CAT_MOTOR, boost, "dig", 0, 37813, 1700, 1 ) \
PARAM_ENTRY(CAT_MOTOR, fweak, "Hz", 0, 1000, 90, 2 ) \
PARAM_ENTRY(CAT_MOTOR, fconst, "Hz", 0, 1000, 180, 99 ) \
PARAM_ENTRY(CAT_MOTOR, udcnom, "V", 0, 1000, 0, 78 ) \
PARAM_ENTRY(CAT_MOTOR, fslipmin, "Hz", 0.3, 10, 1, 37 ) \
PARAM_ENTRY(CAT_MOTOR, fslipmax, "Hz", 0.3, 10, 3, 33 ) \
PARAM_ENTRY(CAT_MOTOR, fslipconstmax,"Hz", 0, 10, 5, 100 ) \

#define MOTOR_PARAMETERS_COMMON \
PARAM_ENTRY(CAT_MOTOR, polepairs, "", 1, 16, 2, 32 ) \
PARAM_ENTRY(CAT_MOTOR, respolepairs,"", 1, 16, 1, 93 ) \
PARAM_ENTRY(CAT_MOTOR, encmode, ENCMODES, 0, 5, 0, 75 ) \
PARAM_ENTRY(CAT_MOTOR, fmax, "Hz", 21, 1000, 200, 9 ) \
PARAM_ENTRY(CAT_MOTOR, numimp, "ppr", 8, 8192, 60, 15 ) \
PARAM_ENTRY(CAT_MOTOR, dirchrpm, "rpm", 0, 20000, 100, 87 ) \
PARAM_ENTRY(CAT_MOTOR, dirmode, DIRMODES, 0, 4, 1, 95 ) \
PARAM_ENTRY(CAT_MOTOR, snsm, SNS_M, 12, 15, 12, 46 ) \
PARAM_ENTRY(CAT_MOTOR, snsm, SNS_M, 12, 15, 12, 46 )

#define MOTOR_PARAMETERS_SINE \
PARAM_ENTRY(CAT_MOTOR, boost, "dig", 0, 37813, 1700, 1 ) \
PARAM_ENTRY(CAT_MOTOR, fweak, "Hz", 0, 1000, 90, 2 ) \
PARAM_ENTRY(CAT_MOTOR, fconst, "Hz", 0, 1000, 180, 99 ) \
PARAM_ENTRY(CAT_MOTOR, udcnom, "V", 0, 1000, 0, 78 ) \
PARAM_ENTRY(CAT_MOTOR, fslipmin, "Hz", 0.3, 10, 1, 37 ) \
PARAM_ENTRY(CAT_MOTOR, fslipmax, "Hz", 0.3, 10, 3, 33 ) \
PARAM_ENTRY(CAT_MOTOR, fslipconstmax,"Hz", 0, 10, 5, 100 )

#define MOTOR_PARAMETERS_FOC \
PARAM_ENTRY(CAT_MOTOR, curkp, "", 0, 20000, 32, 107 ) \
PARAM_ENTRY(CAT_MOTOR, curki, "", 0, 100000, 20000, 108 ) \
PARAM_ENTRY(CAT_MOTOR, curkifrqgain,"dig/Hz", 0, 1000, 50, 120 ) \
PARAM_ENTRY(CAT_MOTOR, fwkp, "", -10000, 0, -100, 118 ) \
PARAM_ENTRY(CAT_MOTOR, dmargin, "Hz", -10000, 0, -2000, 113 ) \
PARAM_ENTRY(CAT_MOTOR, syncofs, "dig", 0, 65535, 0, 70 )

#define INVERTER_PARAMETERS_COMMON \
PARAM_ENTRY(CAT_INVERTER,pwmfrq, PWMFRQS, 0, 2, 1, 13 ) \
PARAM_ENTRY(CAT_INVERTER,pwmpol, PWMPOLS, 0, 1, 0, 52 ) \
PARAM_ENTRY(CAT_INVERTER,deadtime, "dig", 0, 255, 63, 14 ) \
PARAM_ENTRY(CAT_INVERTER,ocurlim, "A", -65536, 65536, 100, 22 ) \
PARAM_ENTRY(CAT_INVERTER,minpulse, "dig", 0, 4095, 1000, 24 ) \
PARAM_ENTRY(CAT_INVERTER,il1gain, "dig/A", -100, 100, 4.7, 27 ) \
PARAM_ENTRY(CAT_INVERTER,il2gain, "dig/A", -100, 100, 4.7, 28 ) \
PARAM_ENTRY(CAT_INVERTER,udcgain, "dig/V", 0, 4095, 6.175, 29 ) \
PARAM_ENTRY(CAT_INVERTER,udcofs, "dig", 0, 4095, 0, 77 ) \
PARAM_ENTRY(CAT_INVERTER,udclim, "V", 0, 1000, 540, 48 ) \
PARAM_ENTRY(CAT_INVERTER,snshs, SNS_HS, 0, 5, 0, 45 ) \
PARAM_ENTRY(CAT_INVERTER,snshs, SNS_HS, 0, 5, 0, 45 )

#define INVERTER_PARAMETERS_FOC \
PARAM_ENTRY(CAT_INVERTER,pinswap, SWAPS, 0, 15, 0, 109 )

#define DERATE_PARAMETERS_COMMON \
PARAM_ENTRY(CAT_DERATE, bmslimhigh, "%", 0, 100, 50, 55 ) \
PARAM_ENTRY(CAT_DERATE, bmslimlow, "%", -100, 0, -1, 56 ) \
PARAM_ENTRY(CAT_DERATE, udcmin, "V", 0, 1000, 450, 42 ) \
PARAM_ENTRY(CAT_DERATE, udcmax, "V", 0, 1000, 520, 43 ) \
PARAM_ENTRY(CAT_DERATE, iacmax, "A", 0, 5000, 5000, 89 ) \
PARAM_ENTRY(CAT_DERATE, idcmax, "A", 0, 5000, 5000, 96 ) \
PARAM_ENTRY(CAT_DERATE, idcmin, "A", -5000, 0, -5000, 98 ) \
PARAM_ENTRY(CAT_DERATE, tmphsmax, "°C", 50, 150, 85, 125 ) \
PARAM_ENTRY(CAT_DERATE, tmpmmax, "°C", 70, 300, 300, 127 ) \
PARAM_ENTRY(CAT_DERATE, throtmax, "%", 0, 100, 100, 97 ) \
PARAM_ENTRY(CAT_DERATE, throtmin, "%", -100, 0, -100, 119 ) \
PARAM_ENTRY(CAT_DERATE, throtmin, "%", -100, 0, -100, 119 )

#define DERATE_PARAMETERS_SINE \
PARAM_ENTRY(CAT_DERATE, iacmax, "A", 0, 5000, 5000, 89 ) \
PARAM_ENTRY(CAT_DERATE, ifltrise, "dig", 0, 32, 10, 91 ) \
PARAM_ENTRY(CAT_DERATE, ifltfall, "dig", 0, 32, 3, 92 ) \

#define CHARGER_PARAMETERS \
PARAM_ENTRY(CAT_CHARGER, chargemode, CHARGEMODS,0, 4, 0, 74 ) \
PARAM_ENTRY(CAT_CHARGER, chargecur, "A", 0, 50, 0, 71 ) \
PARAM_ENTRY(CAT_CHARGER, chargekp, "dig", 0, 100, 80, 72 ) \
PARAM_ENTRY(CAT_CHARGER, chargeki, "dig", 0, 100, 10, 126 ) \
PARAM_ENTRY(CAT_CHARGER, chargeflt, "dig", 0, 10, 8, 73 ) \
PARAM_ENTRY(CAT_CHARGER, chargemax, "%", 0, 99, 90, 79 ) \
PARAM_ENTRY(CAT_CHARGER, chargemax, "%", 0, 99, 90, 79 )

#define THROTTLE_PARAMETERS_COMMON \
PARAM_ENTRY(CAT_THROTTLE,potmin, "dig", 0, 4095, 0, 17 ) \
PARAM_ENTRY(CAT_THROTTLE,potmax, "dig", 0, 4095, 4095, 18 ) \
PARAM_ENTRY(CAT_THROTTLE,pot2min, "dig", 0, 4095, 4095, 63 ) \
PARAM_ENTRY(CAT_THROTTLE,pot2max, "dig", 0, 4095, 4095, 64 ) \
PARAM_ENTRY(CAT_THROTTLE,potmode, POTMODES, 0, 2, 0, 82 ) \
PARAM_ENTRY(CAT_THROTTLE,throtramp, "%/10ms", 0.1, 100, 100, 81 ) \
PARAM_ENTRY(CAT_THROTTLE,throtramprpm,"rpm", 0, 20000, 20000, 85 ) \
PARAM_ENTRY(CAT_THROTTLE,throtramprpm,"rpm", 0, 20000, 20000, 85 )

#define THROTTLE_PARAMETERS_SINE \
PARAM_ENTRY(CAT_THROTTLE,ampmin, "%", 0, 100, 10, 4 ) \
PARAM_ENTRY(CAT_THROTTLE,slipstart, "%", 10, 100, 50, 90 ) \

#define THROTTLE_PARAMETERS_FOC \
PARAM_ENTRY(CAT_THROTTLE,throtcur, "A/%", -10, 10, 1, 105 )

#define REGEN_PARAMETERS \
PARAM_ENTRY(CAT_REGEN, brknompedal, "%", -100, 0, -50, 38 ) \
PARAM_ENTRY(CAT_REGEN, regenramp, "%/10ms", 0.1, 100, 100, 68 ) \
PARAM_ENTRY(CAT_REGEN, brknom, "%", 0, 100, 30, 19 ) \
Expand All @@ -92,7 +120,9 @@
PARAM_ENTRY(CAT_REGEN, brkrampstr, "Hz", 0, 400, 10, 39 ) \
PARAM_ENTRY(CAT_REGEN, brkhistr, "Hz", 20, 1000, 1000, 122 ) \
PARAM_ENTRY(CAT_REGEN, brkhistp, "Hz", 30, 1000, 1000, 123 ) \
PARAM_ENTRY(CAT_REGEN, brkout, "%", -100, -1, -50, 67 ) \
PARAM_ENTRY(CAT_REGEN, brkout, "%", -100, -1, -50, 67 )

#define AUTOMATION_CONTACT_PWM_COMM_PARAMETERS \
PARAM_ENTRY(CAT_AUTOM, idlespeed, "rpm", -100, 10000, -100, 54 ) \
PARAM_ENTRY(CAT_AUTOM, idlethrotlim,"%", 0, 100, 50, 65 ) \
PARAM_ENTRY(CAT_AUTOM, idlemode, IDLEMODS, 0, 3, 0, 66 ) \
Expand All @@ -107,8 +137,8 @@
PARAM_ENTRY(CAT_PWM, pwmofs, "dig", -65535, 65535, 0, 41 ) \
PARAM_ENTRY(CAT_COMM, canspeed, CANSPEEDS, 0, 3, 1, 83 ) \
PARAM_ENTRY(CAT_COMM, canperiod, CANPERIODS,0, 1, 0, 88 ) \
PARAM_ENTRY(CAT_TEST, fslipspnt, "Hz", -100, 1000, 0, 0 ) \
PARAM_ENTRY(CAT_TEST, ampnom, "%", 0, 100, 0, 0 ) \

#define VALUE_BLOCK1 \
VALUE_ENTRY(version, VERSTR, 2039 ) \
VALUE_ENTRY(hwver, HWREVS, 2036 ) \
VALUE_ENTRY(opmode, OPMODES, 2000 ) \
Expand All @@ -117,13 +147,9 @@
VALUE_ENTRY(udc, "V", 2001 ) \
VALUE_ENTRY(idc, "A", 2002 ) \
VALUE_ENTRY(il1, "A", 2003 ) \
VALUE_ENTRY(il2, "A", 2004 ) \
VALUE_ENTRY(ilmax, "A", 2005 ) \
VALUE_ENTRY(uac, "V", 2006 ) \
VALUE_ENTRY(il1rms, "A", 2007 ) \
VALUE_ENTRY(il2rms, "A", 2008 ) \
VALUE_ENTRY(boostcalc, "dig", 2009 ) \
VALUE_ENTRY(fweakcalc, "Hz", 2010 ) \
VALUE_ENTRY(il2, "A", 2004 )

#define VALUE_BLOCK2 \
VALUE_ENTRY(fstat, "Hz", 2011 ) \
VALUE_ENTRY(speed, "rpm", 2012 ) \
VALUE_ENTRY(cruisespeed, "rpm", 2041 ) \
Expand All @@ -137,7 +163,7 @@
VALUE_ENTRY(tmphs, "°C", 2019 ) \
VALUE_ENTRY(tmpm, "°C", 2020 ) \
VALUE_ENTRY(uaux, "V", 2021 ) \
VALUE_ENTRY(pwmio, "", 12022 ) \
VALUE_ENTRY(pwmio, "", 2045 ) \
VALUE_ENTRY(canio, CANIOS, 2022 ) \
VALUE_ENTRY(din_cruise, ONOFF, 2023 ) \
VALUE_ENTRY(din_start, ONOFF, 2024 ) \
Expand All @@ -151,127 +177,58 @@
VALUE_ENTRY(din_bms, ONOFF, 2032 ) \
VALUE_ENTRY(cpuload, "%", 2035 )

#define VALUES_SINE \
VALUE_ENTRY(ilmax, "A", 2005 ) \
VALUE_ENTRY(uac, "V", 2006 ) \
VALUE_ENTRY(il1rms, "A", 2007 ) \
VALUE_ENTRY(il2rms, "A", 2008 ) \
VALUE_ENTRY(boostcalc, "dig", 2009 ) \
VALUE_ENTRY(fweakcalc, "Hz", 2010 ) \

#define VALUES_FOC \
VALUE_ENTRY(id, "A", 2003 ) \
VALUE_ENTRY(iq, "A", 2004 ) \
VALUE_ENTRY(ud, "dig", 2046 ) \
VALUE_ENTRY(uq, "dig", 2047 ) \
VALUE_ENTRY(heatcur, "A", 2043 ) \

#if CONTROL == CTRL_SINE
#define PARAM_LIST \
MOTOR_PARAMETERS_SINE \
MOTOR_PARAMETERS_COMMON \
INVERTER_PARAMETERS_COMMON \
DERATE_PARAMETERS_COMMON \
DERATE_PARAMETERS_SINE \
CHARGER_PARAMETERS \
THROTTLE_PARAMETERS_COMMON \
THROTTLE_PARAMETERS_SINE \
REGEN_PARAMETERS \
AUTOMATION_CONTACT_PWM_COMM_PARAMETERS \
PARAM_ENTRY(CAT_TEST, fslipspnt, "Hz", -100, 1000, 0, 0 ) \
PARAM_ENTRY(CAT_TEST, ampnom, "%", 0, 100, 0, 0 ) \
VALUE_BLOCK1 \
VALUES_SINE \
VALUE_BLOCK2

#elif CONTROL == CTRL_FOC
/* category name unit min max default id */
#define PARAM_LIST \
PARAM_ENTRY(CAT_MOTOR, curkp, "", 0, 20000, 32, 107 ) \
PARAM_ENTRY(CAT_MOTOR, curki, "", 0, 100000, 20000, 108 ) \
PARAM_ENTRY(CAT_MOTOR, curkifrqgain,"dig/Hz", 0, 1000, 50, 120 ) \
PARAM_ENTRY(CAT_MOTOR, fwkp, "", -10000, 0, -100, 118 ) \
PARAM_ENTRY(CAT_MOTOR, dmargin, "Hz", -10000, 0, -2000, 113 ) \
PARAM_ENTRY(CAT_MOTOR, polepairs, "", 1, 16, 2, 32 ) \
PARAM_ENTRY(CAT_MOTOR, respolepairs,"", 1, 16, 1, 93 ) \
PARAM_ENTRY(CAT_MOTOR, encmode, ENCMODES, 0, 5, 0, 75 ) \
PARAM_ENTRY(CAT_MOTOR, fmax, "Hz", 21, 1000, 200, 9 ) \
PARAM_ENTRY(CAT_MOTOR, numimp, "ppr", 8, 8192, 60, 15 ) \
PARAM_ENTRY(CAT_MOTOR, dirchrpm, "rpm", 0, 20000, 100, 87 ) \
PARAM_ENTRY(CAT_MOTOR, dirmode, DIRMODES, 0, 4, 1, 95 ) \
PARAM_ENTRY(CAT_MOTOR, syncofs, "dig", 0, 65535, 0, 70 ) \
PARAM_ENTRY(CAT_MOTOR, snsm, SNS_M, 12, 15, 12, 46 ) \
PARAM_ENTRY(CAT_INVERTER,pwmfrq, PWMFRQS, 0, 2, 1, 13 ) \
PARAM_ENTRY(CAT_INVERTER,pwmpol, PWMPOLS, 0, 1, 0, 52 ) \
PARAM_ENTRY(CAT_INVERTER,deadtime, "dig", 0, 255, 63, 14 ) \
PARAM_ENTRY(CAT_INVERTER,ocurlim, "A", -65536, 65536, 100, 22 ) \
PARAM_ENTRY(CAT_INVERTER,il1gain, "dig/A", -100, 100, 4.7, 27 ) \
PARAM_ENTRY(CAT_INVERTER,il2gain, "dig/A", -100, 100, 4.7, 28 ) \
PARAM_ENTRY(CAT_INVERTER,udcgain, "dig/V", 0, 4095, 6.175, 29 ) \
PARAM_ENTRY(CAT_INVERTER,udcofs, "dig", 0, 4095, 0, 77 ) \
PARAM_ENTRY(CAT_INVERTER,udclim, "V", 0, 1000, 540, 48 ) \
PARAM_ENTRY(CAT_INVERTER,snshs, SNS_HS, 0, 6, 0, 45 ) \
PARAM_ENTRY(CAT_INVERTER,pinswap, SWAPS, 0, 15, 0, 109 ) \
PARAM_ENTRY(CAT_DERATE, bmslimhigh, "%", 0, 100, 50, 55 ) \
PARAM_ENTRY(CAT_DERATE, bmslimlow, "%", -100, 0, -1, 56 ) \
PARAM_ENTRY(CAT_DERATE, udcmin, "V", 0, 1000, 450, 42 ) \
PARAM_ENTRY(CAT_DERATE, udcmax, "V", 0, 1000, 520, 43 ) \
PARAM_ENTRY(CAT_DERATE, idcmax, "A", 0, 5000, 5000, 96 ) \
PARAM_ENTRY(CAT_DERATE, idcmin, "A", -5000, 0, -5000, 98 ) \
PARAM_ENTRY(CAT_DERATE, tmphsmax, "°C", 50, 150, 85, 125 ) \
PARAM_ENTRY(CAT_DERATE, tmpmmax, "°C", 70, 300, 300, 127 ) \
PARAM_ENTRY(CAT_DERATE, throtmax, "%", 0, 100, 100, 97 ) \
PARAM_ENTRY(CAT_DERATE, throtmin, "%", -100, 0, -100, 119 ) \
PARAM_ENTRY(CAT_CHARGER, chargemode, CHARGEMODS,0, 4, 0, 74 ) \
PARAM_ENTRY(CAT_CHARGER, chargecur, "A", 0, 50, 0, 71 ) \
PARAM_ENTRY(CAT_CHARGER, chargekp, "dig", 0, 100, 80, 72 ) \
PARAM_ENTRY(CAT_CHARGER, chargeki, "dig", 0, 100, 80, 126 ) \
PARAM_ENTRY(CAT_CHARGER, chargeflt, "dig", 0, 10, 8, 73 ) \
PARAM_ENTRY(CAT_CHARGER, chargemax, "%", 0, 99, 90, 79 ) \
PARAM_ENTRY(CAT_THROTTLE,potmin, "dig", 0, 4095, 0, 17 ) \
PARAM_ENTRY(CAT_THROTTLE,potmax, "dig", 0, 4095, 4095, 18 ) \
PARAM_ENTRY(CAT_THROTTLE,pot2min, "dig", 0, 4095, 4095, 63 ) \
PARAM_ENTRY(CAT_THROTTLE,pot2max, "dig", 0, 4095, 4095, 64 ) \
PARAM_ENTRY(CAT_THROTTLE,potmode, POTMODES, 0, 2, 0, 82 ) \
PARAM_ENTRY(CAT_THROTTLE,throtramp, "%/10ms", 0.1, 100, 100, 81 ) \
PARAM_ENTRY(CAT_THROTTLE,throtramprpm,"rpm", 0, 20000, 20000, 85 ) \
PARAM_ENTRY(CAT_THROTTLE,throtcur, "A/%", -10, 10, 1, 105 ) \
PARAM_ENTRY(CAT_REGEN, brknompedal, "%", -100, 0, -50, 38 ) \
PARAM_ENTRY(CAT_REGEN, regenramp, "%/10ms", 0.1, 100, 100, 68 ) \
PARAM_ENTRY(CAT_REGEN, brknom, "%", 0, 100, 30, 19 ) \
PARAM_ENTRY(CAT_REGEN, brkmax, "%", -100, 0, -30, 49 ) \
PARAM_ENTRY(CAT_REGEN, brkcruise, "%", -100, 0, -30, 124 ) \
PARAM_ENTRY(CAT_REGEN, brkrampstr, "Hz", 0, 400, 10, 39 ) \
PARAM_ENTRY(CAT_REGEN, brkhistr, "Hz", 20, 1000, 1000, 122 ) \
PARAM_ENTRY(CAT_REGEN, brkhistp, "Hz", 30, 1000, 1000, 123 ) \
PARAM_ENTRY(CAT_REGEN, brkout, "%", -100, -1, -50, 67 ) \
PARAM_ENTRY(CAT_AUTOM, idlespeed, "rpm", -100, 10000, -100, 54 ) \
PARAM_ENTRY(CAT_AUTOM, idlethrotlim,"%", 0, 100, 50, 65 ) \
PARAM_ENTRY(CAT_AUTOM, idlemode, IDLEMODS, 0, 3, 0, 66 ) \
PARAM_ENTRY(CAT_AUTOM, speedkp, "", 0, 100, 0.25, 53 ) \
PARAM_ENTRY(CAT_AUTOM, speedflt, "", 0, 16, 5, 57 ) \
PARAM_ENTRY(CAT_AUTOM, cruisemode, BTNSWITCH, 0, 2, 0, 62 ) \
PARAM_ENTRY(CAT_CONTACT, udcsw, "V", 0, 1000, 330, 20 ) \
PARAM_ENTRY(CAT_CONTACT, udcswbuck, "V", 0, 1000, 540, 80 ) \
PARAM_ENTRY(CAT_CONTACT, tripmode, TRIPMODES, 0, 2, 0, 86 ) \
PARAM_ENTRY(CAT_PWM, pwmfunc, PWMFUNCS, 0, 3, 0, 58 ) \
PARAM_ENTRY(CAT_PWM, pwmgain, "", -100000,100000, 100, 40 ) \
PARAM_ENTRY(CAT_PWM, pwmofs, "dig", -65535, 65535, 0, 41 ) \
PARAM_ENTRY(CAT_COMM, canspeed, CANSPEEDS, 0, 3, 1, 83 ) \
PARAM_ENTRY(CAT_COMM, canperiod, CANPERIODS,0, 1, 0, 88 ) \
MOTOR_PARAMETERS_FOC \
MOTOR_PARAMETERS_COMMON \
INVERTER_PARAMETERS_COMMON \
INVERTER_PARAMETERS_FOC \
DERATE_PARAMETERS_COMMON \
CHARGER_PARAMETERS \
THROTTLE_PARAMETERS_COMMON \
THROTTLE_PARAMETERS_FOC \
REGEN_PARAMETERS \
AUTOMATION_CONTACT_PWM_COMM_PARAMETERS \
PARAM_ENTRY(CAT_TEST, manualiq, "A", -400, 400, 0, 0 ) \
PARAM_ENTRY(CAT_TEST, manualid, "A", -400, 400, 0, 0 ) \
VALUE_ENTRY(version, VERSTR, 2039 ) \
VALUE_ENTRY(hwver, HWREVS, 2036 ) \
VALUE_ENTRY(opmode, OPMODES, 2000 ) \
VALUE_ENTRY(lasterr, errorListString, 2038 ) \
VALUE_ENTRY(status, STATUS, 2044 ) \
VALUE_ENTRY(udc, "V", 2001 ) \
VALUE_ENTRY(idc, "A", 2002 ) \
VALUE_ENTRY(il1, "A", 2003 ) \
VALUE_ENTRY(il2, "A", 2004 ) \
VALUE_ENTRY(id, "A", 2003 ) \
VALUE_ENTRY(iq, "A", 2004 ) \
VALUE_ENTRY(uac, "V", 2006 ) \
VALUE_ENTRY(fstat, "Hz", 2011 ) \
VALUE_ENTRY(speed, "rpm", 2012 ) \
VALUE_ENTRY(cruisespeed, "rpm", 2041 ) \
VALUE_ENTRY(heatcur, "A", 2043 ) \
VALUE_ENTRY(turns, "", 2037 ) \
VALUE_ENTRY(amp, "dig", 2013 ) \
VALUE_ENTRY(ampnom, "dig", 2040 ) \
VALUE_ENTRY(angle, "°", 2014 ) \
VALUE_ENTRY(pot, "dig", 2015 ) \
VALUE_ENTRY(pot2, "dig", 2016 ) \
VALUE_ENTRY(potnom, "%", 2017 ) \
VALUE_ENTRY(dir, DIRS, 2018 ) \
VALUE_ENTRY(tmphs, "°C", 2019 ) \
VALUE_ENTRY(tmpm, "°C", 2020 ) \
VALUE_ENTRY(uaux, "V", 2021 ) \
VALUE_ENTRY(pwmio, "", 2042 ) \
VALUE_ENTRY(canio, CANIOS, 2022 ) \
VALUE_ENTRY(din_cruise, ONOFF, 2023 ) \
VALUE_ENTRY(din_start, ONOFF, 2024 ) \
VALUE_ENTRY(din_brake, ONOFF, 2025 ) \
VALUE_ENTRY(din_mprot, OKERR, 2026 ) \
VALUE_ENTRY(din_forward, ONOFF, 2027 ) \
VALUE_ENTRY(din_reverse, ONOFF, 2028 ) \
VALUE_ENTRY(din_emcystop,OKERR, 2029 ) \
VALUE_ENTRY(din_ocur, OKERR, 2030 ) \
VALUE_ENTRY(din_desat, OKERR, 2031 ) \
VALUE_ENTRY(din_bms, ONOFF, 2032 ) \
VALUE_ENTRY(cpuload, "%", 2035 ) \
VALUE_ENTRY(ud, "dig", 0 ) \
VALUE_ENTRY(uq, "dig", 0 ) \
VALUE_BLOCK1 \
VALUES_FOC \
VALUE_BLOCK2 \

//Next value Id: 2045
#endif // CONTROL

/***** Enum String definitions *****/
Expand Down
Loading

0 comments on commit 3473495

Please sign in to comment.