10 Pid(0.8, 1.2, 0.012, 30.0),
turn(0.0){
17 double forward_percent = ((double)forward) / 100.0;
18 pid_value *= forward_percent;
19 turn += (pid_value - pid_value_old) / 2;
20 pid_value_old = pid_value;
void calculate(double light_value)
std::int8_t calculateTurnForPid(std::int8_t forward, std::int8_t light_value)
double limitOutput(double pid_value)