-
Notifications
You must be signed in to change notification settings - Fork 1
/
mtable.inc
executable file
·21 lines (19 loc) · 2.64 KB
/
mtable.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//ENTRY(ID, var, rightshift, resolution, unit, name, minvalue, maxvalue )
ENTRY('1', lastLoopTicks, 0, 1.0, "%", "cpu load", 0.0, 100.0 )
ENTRY('2', sensorData.pulses, 0, 25, "/ min", "speed pulses", -800.0, 200.0 )
ENTRY('3', sensorData.speed, 10, 0.2 / 1024, "/ min", "speed", -800.0, 200.0 )
ENTRY('4', sensorData.filteredSpeed, 10, 0.2 / 1024, "/ min", "filtered speed", -800.0, 200.0 )
ENTRY('5', controlState.targetSpeedGradlim, 0, 0.2, "/ min", "target speed", -800.0, 200.0 )
ENTRY('6', controlState.speedDeviation, 0, 0.2, "/ min", "speed deviation", -800.0, 200.0 )
ENTRY('7', sensorData.voltageRaw, 0, 5.0 / 1024, "V", "solar voltage raw", 0.0, 8.0 )
ENTRY('8', sensorData.voltage, 0, 0.001, "V", "solar voltage", 0.0, 8.0 )
ENTRY('9', controlState.targetVoltageP, 0, 0.001, "V", "target voltage P", -2.0, 8.0 )
ENTRY('a', controlState.targetVoltageI, 10, 0.001 / 1024, "V", "target voltage I", -2.0, 8.0 )
ENTRY('b', controlState.targetVoltageWP, 0, 0.001, "V", "target voltage WP", 0.0, 8.0 )
ENTRY('c', controlState.targetVoltage, 0, 0.001, "V", "target voltage", 0.0, 8.0 )
ENTRY('d', controlState.voltageDeviation, 0, 0.001, "V", "voltage deviation", -2.0, 8.0 )
ENTRY('e', controlState.pwmP, 0, 1.0, "", "pwm P", -255.0, 255.0 )
ENTRY('f', controlState.pwmD, 0, 1.0, "", "pwm D", -255.0, 255.0 )
ENTRY('g', controlState.pwmFeedback, 0, 1.0, "", "pwm feedback", -255.0, 255.0 )
ENTRY('h', controlState.pwm, 0, 1.0, "", "pwm", -255.0, 255.0 )
ENTRY(0, lastLoopTicks, 0, 0.0, "", "end of table", 0.0, 0.0 )