Provides the function for reading inputs and the function for checking the physical constraints on the input. More...
#include <string>
Go to the source code of this file.
Functions | |
void | get_input (string filename, double &r_t, double &K_d, double &K_p, double &t_step, double &t_sim) |
Reads input from a file with the given file name. More... | |
void | input_constraints (double r_t, double K_d, double K_p, double t_step, double t_sim) |
Verifies that input values satisfy the physical constraints. More... | |
Provides the function for reading inputs and the function for checking the physical constraints on the input.
void get_input | ( | string | filename, |
double & | r_t, | ||
double & | K_d, | ||
double & | K_p, | ||
double & | t_step, | ||
double & | t_sim | ||
) |
Reads input from a file with the given file name.
filename | name of the input file |
r_t | Set-Point: The desired value that the control system must reach. This also knows as the reference variable |
K_d | Derivative Gain: Gain constant of the derivative controller |
K_p | Proportional Gain: Gain constant of the proportional controller |
t_step | Step Time: Simulation step time (s) |
t_sim | Simulation Time: Total execution time of the PD simulation (s) |
void input_constraints | ( | double | r_t, |
double | K_d, | ||
double | K_p, | ||
double | t_step, | ||
double | t_sim | ||
) |
Verifies that input values satisfy the physical constraints.
r_t | Set-Point: The desired value that the control system must reach. This also knows as the reference variable |
K_d | Derivative Gain: Gain constant of the derivative controller |
K_p | Proportional Gain: Gain constant of the proportional controller |
t_step | Step Time: Simulation step time (s) |
t_sim | Simulation Time: Total execution time of the PD simulation (s) |