Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb Temperature Control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Pascal Engeler
RBComb Temperature Control
Commits
be715234
Commit
be715234
authored
1 year ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Added sensible default value for I reset, this should be exposed in the api
parent
d44ba097
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
firmware/drivers/pid_controller/pid_controller.cpp
+1
-1
1 addition, 1 deletion
firmware/drivers/pid_controller/pid_controller.cpp
with
1 addition
and
1 deletion
firmware/drivers/pid_controller/pid_controller.cpp
+
1
−
1
View file @
be715234
...
...
@@ -22,7 +22,7 @@ double Pid_controller::output_=0.05; //output to LTC6992
std
::
vector
<
double
>
Pid_controller
::
pid_vec_
=
{
0.
,
0.
,
0.
};
//current values of P I D
std
::
vector
<
double
>
Pid_controller
::
kpid_vec_
=
{
0.
,
0.
,
0.
};
//coefficients Kp Ki Kd
double
Pid_controller
::
I_reset_
=
0.
;
//reset value of I
double
Pid_controller
::
I_reset_errsq_
=
0.
;
//value of error*error above which the I-term is held in reset
double
Pid_controller
::
I_reset_errsq_
=
0.
5
;
//value of error*error above which the I-term is held in reset
void
Pid_controller
::
init
(
double
setpoint
,
std
::
vector
<
double
>
kpid
,
double
I_reset
,
double
I_reset_errsq
){
...
...
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