i am having some problem with this part of the program and i don't know what is wrong if you could please check it out . . .
Code:
int main()
{
float rezult;
pid_para_global *pid_global_par;
pid_para *pid_par;
cout << "P parameter value? " << endl;
cin >> pid_par->p_par[0];
cout << "I parameter value? " << endl;
cin >> pid_par->i_par[0];
cout << "Value of deadband " << endl;
cin >> pid_par->dead_band[0];
cout << "Setpoint value ?" << endl;
cin >> pid_par->setpoint[0];
do {
cout << "Actual value ?" << endl;
cin >> pid_par->actual[0];
rezult = PID(pid_global_par, pid_par);
cout << "Calculation rezult is " << rezult << endl << endl;
}while (pid_par->actual[0] != 0);
}
Thanks for your time and help,
Best regards,
BoSCHoW.


