-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
31 lines (30 loc) · 779 Bytes
/
config.js
File metadata and controls
31 lines (30 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const { HardwareProfile, LEDColor, LogLevel, PIDParams, RelayType } = require('./src/constants');
module.exports = {
hardwareProfile: HardwareProfile.PI,
leds: [
{ color: LEDColor.RED, pIndex: 31 },
{ color: LEDColor.YELLOW, pIndex: 33 },
{ color: LEDColor.GREEN, pIndex: 35 },
{ color: LEDColor.BLUE, pIndex: 37 },
],
logLevel: LogLevel.DEBUG,
pid: {
[PIDParams.PROPORTIONAL_GAIN]: 1.5,
[PIDParams.INTEGRAL_GAIN]: 1,
[PIDParams.DERIVATIVE_GAIN]: 0.5,
[PIDParams.MAX_INTEGRAL]: 3,
},
relays: [
{ pIndex: 7, type: RelayType.NORMALLY_CLOSED },
{ pIndex: 8, type: RelayType.NORMALLY_CLOSED },
],
schedule: {
targetTemperature: 30,
},
server: {
port: 3000,
},
thermometer: {
readIntervalMS: 850,
},
};