Commit 423e838c authored by Luiz-Fernando Lavado-Villa's avatar Luiz-Fernando Lavado-Villa
Browse files

Trying to clean up some parts of my file

parent 5abdb87a
......@@ -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);
}
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment