Skip to content
Snippets Groups Projects
Commit 8fa85fdc authored by Cyril Danilevski's avatar Cyril Danilevski :scooter:
Browse files

Set all DSSC2 M1 channels

parent d43e67f5
No related branches found
No related tags found
1 merge request!3DEPFET Q2M1 Power Procedure
......@@ -6,17 +6,21 @@ PowerProcedure::PowerProcedure(const IPAddress& ipAddr)
: ipAddr(ipAddr), stagesCount(STAGESCOUNT), currentStage(""), currentChannel(-1) {
stages = new Stage[stagesCount];
stages[0].name = "ASICS";
stages[0].size = 9;
stages[0].channels = new int[stages[0].size]{508, 708, 502, 503, 504, 501, 507, 607, 608};
stages[0].name = "AON";
stages[0].size = 1;
stages[0].channels = new int[stages[0].size]{604};
stages[1].name = "HV";
stages[1].size = 10;
stages[1].channels = new int[stages[1].size]{1, 2, 101, 103, 102, 104, 105, 106, 107, 108};
stages[1].name = "ASICS";
stages[1].size = 9;
stages[1].channels = new int[stages[1].size]{508, 708, 502, 503, 504, 501, 507, 607, 608};
stages[2].name = "PLCSOURCE";
stages[2].size = 9;
stages[2].channels = new int[stages[2].size]{701, 801, 802, 803, 804, 301, 302, 303, 304};
stages[2].name = "HV";
stages[2].size = 10;
stages[2].channels = new int[stages[2].size]{1, 2, 101, 103, 102, 104, 105, 106, 107, 108};
stages[3].name = "PLCSOURCE";
stages[3].size = 9;
stages[3].channels = new int[stages[3].size]{701, 801, 802, 803, 804, 301, 302, 303, 304};
}
PowerProcedure::~PowerProcedure() {
......
#pragma once
#include <Arduino.h>
#define STAGESCOUNT 3
#define STAGESCOUNT 4
class PowerProcedure {
private:
......
......@@ -231,7 +231,7 @@ void powerAllOff() {
}
if (success) {
for (uint8_t groupIdx = pproc.stagesCount; groupIdx >= 0; groupIdx--) {
for (uint8_t groupIdx = pproc.stagesCount - 1; groupIdx >= 0; groupIdx--) {
group = pproc.stages[groupIdx].name;
groups += group;
groups += ",";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment