Scilab Function
Last update : 22/8/2006

dm_pi_update - update proportional integral controller for a deformable mirror .

Calling Sequence

[dm_pi_out,dm_command_out]=dm_pi_update(dm_pi_in,dm_residual,dm_command_in)

Parameters

Description

update proportional integral controller for a deformable mirror.

Examples

	ap=circle(5);
	act_dim=8;act_pitch=1;act_vel=1e-4;
	act=actuator_array(act_dim,act_dim,act_pitch,act_vel);
	dm=ideal_dm(ap,act);

	prop_gain = 1e-4;int_gain = 1e-3;
	pi=pi_controller(prop_gain,int_gain);
	
	dm_pi=dm_pi_controller(dm,pi);
	pixarr=pixel_array(act_dim);  
	dm_residuals=pixarr;
	dm_command=pixarr;

	dm_pi=dm_pi_controller(dm,pi);
	[dm_pi,dm_command]=dm_pi_update(dm_pi,dm_residuals,dm_command);
 

Author

Chen jingyuan, Gan guangyong (IAPCM, Beijing,China.)

See Also

pi_controller ,   dm_pi_controller ,   dm_update ,   controller ,