Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICBM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
detectors
DSSC
ICBM
Commits
eb2be556
Commit
eb2be556
authored
1 month ago
by
Cyril Danilevski
Browse files
Options
Downloads
Patches
Plain Diff
Check target voltage and target current on channel poll
parent
4f3c386d
No related branches found
No related tags found
Loading
Pipeline
#165017
passed
1 month ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mpod.cpp
+9
-5
9 additions, 5 deletions
mpod.cpp
with
9 additions
and
5 deletions
mpod.cpp
+
9
−
5
View file @
eb2be556
...
...
@@ -23,6 +23,10 @@ SNMP::Message *MPOD::read(uint16_t channel) {
snmp_cmd
+=
channel
;
message
->
add
(
snmp_cmd
.
c_str
());
snmp_cmd
=
OID
::
NAMES
[
OID
::
OUTPUTVOLTAGE
];
snmp_cmd
+=
channel
;
message
->
add
(
snmp_cmd
.
c_str
());
snmp_cmd
=
OID
::
NAMES
[
OID
::
OUTPUTMEASUREMENTSENSEVOLTAGE
];
snmp_cmd
+=
channel
;
message
->
add
(
snmp_cmd
.
c_str
());
...
...
@@ -31,6 +35,10 @@ SNMP::Message *MPOD::read(uint16_t channel) {
snmp_cmd
+=
channel
;
message
->
add
(
snmp_cmd
.
c_str
());
snmp_cmd
=
OID
::
NAMES
[
OID
::
OUTPUTCURRENT
];
snmp_cmd
+=
channel
;
message
->
add
(
snmp_cmd
.
c_str
());
return
message
;
}
...
...
@@ -202,9 +210,6 @@ void initializeSNMP() {
Serial
.
println
(
"SNMP Server Started"
);
}
/* setChannelAndWait
* Set a channel's parameters and wait until it's settled.
*/
void
setChannelStateAndWait
(
const
IPAddress
*
ipAddr
,
const
uint16_t
channel
,
const
uint8_t
output
)
{
// Send set command
SNMP
::
Message
*
snmp_msg
=
mpod
.
setChannelState
(
channel
,
output
);
...
...
@@ -244,6 +249,5 @@ void setChannelVoltageAndWait(const IPAddress *ipAddr, const uint16_t channel,
delete
snmp_msg
;
delay
(
MPOD_UPDATE_LATENCY
);
snmp
.
loop
();
}
while
(
mpod
.
isRampingDown
()
||
mpod
.
isRampingUp
());
// TODO check applied voltage close to target voltage
}
while
(
mpod
.
isRampingDown
()
||
mpod
.
isRampingUp
());
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment