Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Luiz Fernando Lavado Villa
Core
Commits
423e838c
Commit
423e838c
authored
Jul 19, 2021
by
Luiz-Fernando Lavado-Villa
Browse files
Trying to clean up some parts of my file
parent
5abdb87a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
423e838c
...
...
@@ -28,8 +28,59 @@
* @author Clément Foucher <clement.foucher@laas.fr>
*/
#include
"opalib_pid.h"
#include
"opalib_quick_start.h"
//#include "data_conversion.h"
// void data_parameters_init(){
// float32_t v1_low_gain = 0.0 ;
// float32_t v1_low_offset = 0.0;
// v1_low_parameters_set(v1_low_gain, v1_low_offset);
// float32_t v2_low_gain = 0.0;
// float32_t v2_low_offset = 0.0;
// v2_low_parameters_set(v1_low_gain, v1_low_offset);
// float32_t v_high_gain = 0.0;
// float32_t v_high_offset = 0.0;
// v_high_parameters_set(v1_low_gain, v1_low_offset);
// float32_t i1_low_gain = 0.0;
// float32_t i1_low_offset = 0.0;
// i1_low_parameters_set(v1_low_gain, v1_low_offset);
// float32_t i2_low_gain = 0.0;
// float32_t i2_low_offset = 0.0;
// i2_low_parameters_set(v1_low_gain, v1_low_offset);
// float32_t i_high_gain = 0.0;
// float32_t i_high_offset = 0.0;
// i_high_parameters_set(v1_low_gain, v1_low_offset);
// float32_t temp_gain = 0.0;
// float32_t temp_offset = 0.0;
// temp_parameters_set(v1_low_gain, v1_low_offset);
// }
void
main
(
void
)
{
uint32_t
interruption_length
=
50
;
// length of the interruption micro-seconds
opalib_quick_start_init_voltage
(
pid_calculation_and_pwm_update
,
interruption_length
);
float32_t
target_voltage
=
12
;
float32_t
kp
=
-
0.00000235
;
float32_t
ki
=
-
0.117
;
float32_t
kd
=
0.0
;
pid_init_buck
(
target_voltage
,
kp
,
ki
,
kd
);
}
src/owntech.ini
View file @
423e838c
...
...
@@ -7,6 +7,7 @@
[env]
lib_deps
=
# quick_start=https://gitlab.laas.fr/owntech/power-api/opalib-quick-start.git
# pid_voltage=https://gitlab.laas.fr/owntech/power-api/opalib-pid.git
quick_start
=
https://gitlab.laas.fr/owntech/power-api/opalib-quick-start.git
pid_voltage
=
https://gitlab.laas.fr/owntech/power-api/opalib-pid.git
# pid_voltage_luiz = https://gitlab.laas.fr/lflavado/opalib-pid.git#new_acquisition_code
# pid_current=https://gitlab.laas.fr/owntech/power-api/opalib-pid-current-mode.git
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment